]> git.donarmstrong.com Git - lilypond.git/commitdiff
plug memory leak in System_start_delimiter_engraver
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 17 Jan 2007 00:53:38 +0000 (01:53 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 17 Jan 2007 14:51:58 +0000 (15:51 +0100)
lily/system-start-delimiter-engraver.cc

index 5c28a612311887ea1355022b694f7a77e85eedde..a8813dd5741597f85d4fca40f605d13491246e94 100644 (file)
@@ -96,8 +96,7 @@ Bracket_nesting_group::add_support (Grob *g)
 
 Bracket_nesting_group::~Bracket_nesting_group ()
 {
-  for (vsize i = 0 ; i < children_.size (); i++)
-    delete children_[i];
+  junk_pointers (children_);
 }
 
 void
@@ -212,6 +211,8 @@ System_start_delimiter_engraver::finalize ()
       nesting_->set_bound (RIGHT,
                           unsmob_grob (get_property ("currentCommandColumn")));
       nesting_->set_nesting_support (0);
+
+      delete nesting_;
     }
 }