]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/system-start-delimiter-engraver.cc
Bugfix: uniq-list uses equal? iso. eq?.
[lilypond.git] / lily / system-start-delimiter-engraver.cc
index 5c28a612311887ea1355022b694f7a77e85eedde..ee4bf6ef114a5265cbb595e91361c6c09647988b 100644 (file)
@@ -4,7 +4,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2005--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2005--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
 */
 
@@ -21,7 +21,7 @@
 struct Bracket_nesting_node
 {
 public:
-  virtual ~Bracket_nesting_node(){}
+  virtual ~Bracket_nesting_node (){}
   virtual bool add_staff (Grob *) { return false; }
   virtual void add_support (Grob *) { }
   virtual void set_bound (Direction, Grob *){}
@@ -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,13 +211,15 @@ System_start_delimiter_engraver::finalize ()
       nesting_->set_bound (RIGHT,
                           unsmob_grob (get_property ("currentCommandColumn")));
       nesting_->set_nesting_support (0);
+
+      delete nesting_;
     }
 }
 
 void
 System_start_delimiter_engraver::acknowledge_staff_symbol (Grob_info inf)
 {
-  Grob *staff = inf.grob();
+  Grob *staff = inf.grob ();
   bool succ = nesting_->add_staff (staff);
 
   if (!succ)