]> git.donarmstrong.com Git - lilypond.git/commitdiff
Bitrot fix in outcommented Grob_array::mark_smob code
authorDavid Kastrup <dak@gnu.org>
Mon, 6 Oct 2014 16:44:28 +0000 (18:44 +0200)
committerDavid Kastrup <dak@gnu.org>
Mon, 6 Oct 2014 16:45:00 +0000 (18:45 +0200)
Just in case we need to resuscitate that code, it would be nice if it
were actually correct.  This is an afterthought of issue 4135.

lily/grob-array.cc

index f1f47561e306c3b31550d13f38efc504456924a3..908ff6334b638df5eb75515522c169c9775b7687 100644 (file)
@@ -55,9 +55,8 @@ SCM
 Grob_array::mark_smob ()
 {
 #if 0  /* see System::derived_mark () const */
-  Grob_array *ga = Grob_array::unsmob (s);
-  for (vsize i = 0; i < ga->grobs_.size (); i++)
-    scm_gc_mark (ga->grobs_[i]->self_scm ());
+  for (vsize i = 0; i < grobs_.size (); i++)
+    scm_gc_mark (grobs_[i]->self_scm ());
 #endif
   return SCM_UNDEFINED;
 }