]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grob.cc
* lily/grob.cc (Grob): idem. Plugs mem leaks.
[lilypond.git] / lily / grob.cc
index c6e442ec53535f6e22c2e3cd7e1582aa7582d2b4..c2d6a2d049f71a521f6f2c368b8d597103d7ebc8 100644 (file)
@@ -59,6 +59,10 @@ Grob::Grob (SCM basicprops,
      GC. After smobify_self (), they are.  */
   smobify_self ();
 
+  /*
+    We always get a new key object for a new grob.
+   */
+  scm_gc_unprotect_object (key_->self_scm ());
   SCM meta = get_property ("meta");
   if (scm_is_pair (meta))
     {