From: Han-Wen Nienhuys Date: Mon, 21 Jun 1999 11:55:17 +0000 (+0200) Subject: patch::: 1.1.49.uu1 X-Git-Tag: release/1.1.50~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2ce92736c41626020d20ddce3320c38177f74360;p=lilypond.git patch::: 1.1.49.uu1 pl 49.uu1 - ran purify. Fixed some small problems --- diff --git a/NEWS b/NEWS index 2eedaf8bb1..291186ca29 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +pl 49.uu1 + - ran purify. Fixed some small problems + + pl 48.hwn1 - \property hshift -> \property horizontalNoteShift (mudela 1.0.21) - cleaned up collision. \property hshift = 2 now supported. diff --git a/VERSION b/VERSION index 5364f24d9a..12a299d774 100644 --- a/VERSION +++ b/VERSION @@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond MAJOR_VERSION=1 MINOR_VERSION=1 PATCH_LEVEL=49 -MY_PATCH_LEVEL= +MY_PATCH_LEVEL=uu1 # use the above to send patches: MY_PATCH_LEVEL is always empty for a # released version. diff --git a/flower/string-convert.cc b/flower/string-convert.cc index cb92d22678..86d44c88c4 100644 --- a/flower/string-convert.cc +++ b/flower/string-convert.cc @@ -262,7 +262,7 @@ String_convert::char_str (char c, int n) char* ch_p = new char[ n ]; memset (ch_p, c, n); String s ((Byte*)ch_p, n); - delete ch_p; + delete[] ch_p; return s; } diff --git a/lib/include/source.hh b/lib/include/source.hh index 7f4a21e7d1..7de83441f3 100644 --- a/lib/include/source.hh +++ b/lib/include/source.hh @@ -8,11 +8,17 @@ #include "cons.hh" #include "proto.hh" +/** + a set of sourcefiles. + TODO: + */ class Sources { + Sources (Sources const&) {} public: Sources (); + ~Sources(); Source_file * get_file_l (String &filename ); Source_file* sourcefile_l (char const* ch_C ); diff --git a/lib/source.cc b/lib/source.cc index 66372945de..e7304d1afc 100644 --- a/lib/source.cc +++ b/lib/source.cc @@ -18,6 +18,7 @@ Sources::Sources () { + sourcefile_p_list_ = 0; path_C_= 0; binary_b_ = false; } @@ -64,6 +65,10 @@ Sources::add (Source_file* sourcefile_p) sourcefile_p_list_ = new Killing_cons (sourcefile_p, sourcefile_p_list_); } +Sources::~Sources () +{ + delete sourcefile_p_list_; +} /** search the list for file whose map contains pointer #ch_C# diff --git a/lily/clef-engraver.cc b/lily/clef-engraver.cc index 0e0c79cc84..59cb9b791c 100644 --- a/lily/clef-engraver.cc +++ b/lily/clef-engraver.cc @@ -27,6 +27,7 @@ Clef_engraver::Clef_engraver() c0_position_i_ = 0; clef_position_i_ = 0; octave_dir_ = CENTER; + create_default_b_ = true; } /* diff --git a/lily/lily-guile.cc b/lily/lily-guile.cc index 2f00874ff2..e63015501e 100644 --- a/lily/lily-guile.cc +++ b/lily/lily-guile.cc @@ -8,7 +8,10 @@ Han-Wen Nienhuys */ + #include +#include + #include "libc-extension.hh" #include "lily-guile.hh" #include "main.hh" @@ -98,7 +101,8 @@ ly_scm2string (SCM s) char * p = gh_scm2newstr (s , &len); String r (p); - delete p; + // delete p; + free (p); return r; } diff --git a/lily/my-lily-lexer.cc b/lily/my-lily-lexer.cc index a0947945ac..8a16827ba2 100644 --- a/lily/my-lily-lexer.cc +++ b/lily/my-lily-lexer.cc @@ -143,6 +143,7 @@ My_lily_lexer::set_identifier (String name_str, Identifier* i, bool ) My_lily_lexer::~My_lily_lexer() { + delete chordmodifier_tab_p_; delete keytable_p_; delete toplevel_scope_p_ ; delete note_tab_p_; diff --git a/lily/notename-table.cc b/lily/notename-table.cc index f86808e9a0..0d2201fca4 100644 --- a/lily/notename-table.cc +++ b/lily/notename-table.cc @@ -22,3 +22,4 @@ Notename_table::get_name (Musical_pitch m) const } return "r"; // rest. } + diff --git a/lily/score-performer.cc b/lily/score-performer.cc index 3da26d540c..c0357ec6e7 100644 --- a/lily/score-performer.cc +++ b/lily/score-performer.cc @@ -25,6 +25,7 @@ ADD_THIS_TRANSLATOR(Score_performer); Score_performer::Score_performer() { + performance_p_ =0; } diff --git a/lily/staff-info.cc b/lily/staff-info.cc index 1331e96d2e..5d214d080f 100644 --- a/lily/staff-info.cc +++ b/lily/staff-info.cc @@ -15,6 +15,8 @@ Staff_info::Staff_info() { time_C_ = 0; rhythmic_C_ =0; + command_l_ =0; + musical_l_ =0; } diff --git a/lily/stem-engraver.cc b/lily/stem-engraver.cc index 1a2284783e..457911bdc1 100644 --- a/lily/stem-engraver.cc +++ b/lily/stem-engraver.cc @@ -22,6 +22,7 @@ Stem_engraver::Stem_engraver() stem_p_ = 0; abbrev_p_ = 0; default_abbrev_i_ = 16; + rhythmic_req_l_ =0; } void