From 55497c7ecf1f5f868a047bd3a3d039451ba00189 Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 26 Mar 2002 21:50:34 +0000 Subject: [PATCH] lilypond-1.1.50 --- lib/include/source.hh | 6 ++++++ lib/source.cc | 5 +++++ 2 files changed, 11 insertions(+) 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# -- 2.39.5