TempoLines deletes its bfc on destruction

This commit is contained in:
nick_m 2017-06-09 01:56:28 +10:00
parent cebefe69d9
commit b086d33937
2 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,12 @@ TempoLines::TempoLines (ArdourCanvas::Container* group, double, ARDOUR::BeatsFra
lines.set_extent (ArdourCanvas::COORD_MAX); lines.set_extent (ArdourCanvas::COORD_MAX);
} }
TempoLines::~TempoLines ()
{
delete _bfc;
_bfc = 0;
}
void void
TempoLines::tempo_map_changed() TempoLines::tempo_map_changed()
{ {

View File

@ -27,6 +27,7 @@
class TempoLines { class TempoLines {
public: public:
TempoLines (ArdourCanvas::Container* group, double screen_height, ARDOUR::BeatsFramesConverter* bfc); TempoLines (ArdourCanvas::Container* group, double screen_height, ARDOUR::BeatsFramesConverter* bfc);
~TempoLines ();
void tempo_map_changed(); void tempo_map_changed();