]> git.donarmstrong.com Git - lilypond.git/commitdiff
*** empty log message ***
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 19 Aug 2006 23:01:16 +0000 (23:01 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 19 Aug 2006 23:01:16 +0000 (23:01 +0000)
lily/translator.cc

index e3c973ebbedfac96b2a5d0eb21b0a449e3455714..ec2b0f64a485ee0a5e4af91218800d9e9fb74091 100644 (file)
@@ -253,7 +253,10 @@ add_acknowledger (Engraver_void_function_engraver_grob_info ptr,
   interface_name = replace_all (interface_name, '_', '-');
   interface_name += "-interface";
 
-  inf.symbol_ = ly_symbol2scm (interface_name.c_str ());
+  /*
+    this is only called during program init, so safe to use scm_gc_protect_object()
+  */
+  inf.symbol_ = scm_gc_protect_object (ly_symbol2scm (interface_name.c_str ()));
   ack_array->push_back (inf);
 }