+2004-05-26 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * lily/my-lily-parser.cc (My_lily_parser): don't delete lexer.
+
2004-05-25 Han-Wen Nienhuys <hanwen@xs4all.nl>
* lily/score.cc (default_rendering): scale outputdef before
{
book_count_ = src.book_count_;
score_count_ = src.score_count_;
- lexer_ = src.lexer_;
+ lexer_ = 0;
sources_ = src.sources_;
default_duration_ = src.default_duration_;
error_level_ = src.error_level_;
header_ = src.header_;
smobify_self ();
+ lexer_ = new My_lily_lexer (*src.lexer_);
}
My_lily_parser::~My_lily_parser ()
{
- delete lexer_;
+ // FIXME: Memleak: del lexer
}
IMPLEMENT_SMOBS (My_lily_parser);
}
error_level_ = error_level_ | lexer_->error_level_;
+ delete lexer_;
+ lexer_ = 0;
}
void