From: fred Date: Tue, 26 Mar 2002 21:48:30 +0000 (+0000) Subject: lilypond-1.1.37 X-Git-Tag: release/1.5.59~2511 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b3270b7828b0a260fa1aff8e6782f821f4daecda;p=lilypond.git lilypond-1.1.37 --- diff --git a/lily/p-score.cc b/lily/p-score.cc index 1e2e45226c..8a075e7a24 100644 --- a/lily/p-score.cc +++ b/lily/p-score.cc @@ -41,10 +41,10 @@ Paper_score::Paper_score (Paper_score const &s) Paper_score::~Paper_score () { - for (int i=0; i < span_p_arr_.size (); i++) + /* for (int i=0; i < span_p_arr_.size (); i++) delete span_p_arr_[i]; for (int i=0; i < elem_p_arr_.size (); i++) - delete elem_p_arr_[i]; + delete elem_p_arr_[i];*/ } void @@ -151,16 +151,17 @@ delete_array_contents (Link_array &to_remove, Dictionary &ty Score_element * e = to_remove[i]; String nm = e->name(); if (type_stats.elem_b (nm)) - type_stats[nm] ++; - else - type_stats[nm] = 1; - - if (dynamic_cast (e)) - type_stats["Item"] ++; - else if (dynamic_cast(e)) - type_stats["Spanner"] ++; - type_stats["Total"] ++; - } + type_stats[nm] ++; + else + type_stats[nm] = 1; + + if (dynamic_cast (e)) + type_stats["Item"] ++; + else if (dynamic_cast(e)) + type_stats["Spanner"] ++; + type_stats["Total"] ++; + // delete e; //TODO! + } to_remove.clear (); to_remove.tighten_maxsize ();