13
0

fix crash at exit if location-ui was used

LocationEditRow members are destroyed after ~LocationUI()
destroys the clock_group. -> segfault in ~LocationEditRow()
This commit is contained in:
Robin Gareus 2015-01-23 02:16:21 +01:00
parent 611073790b
commit 1473442204
2 changed files with 4 additions and 1 deletions

View File

@ -839,7 +839,9 @@ LocationUI::LocationUI ()
LocationUI::~LocationUI()
{
delete _clock_group;
loop_edit_row.unset_clock_group ();
punch_edit_row.unset_clock_group ();
delete _clock_group;
}
gint

View File

@ -58,6 +58,7 @@ class LocationEditRow : public Gtk::HBox, public ARDOUR::SessionHandlePtr
void set_number (int);
void focus_name();
void set_clock_group (ClockGroup&);
void unset_clock_group () { _clock_group = 0; }
sigc::signal<void,ARDOUR::Location*> remove_requested;
sigc::signal<void> redraw_ranges;