Fix crash when transport master widget is visible at session close
Previously that could cause a heap-use-after-free. A reliable way to trigger it was to show the audio connection dialog and connect a track's output to LTC master, then quit.
This commit is contained in:
parent
e8644654c2
commit
8a9a9695aa
@ -256,7 +256,7 @@ TransportMastersWidget::rebuild ()
|
|||||||
r->sclock_synced_button.signal_toggled().connect (sigc::mem_fun (*r, &TransportMastersWidget::Row::sync_button_toggled));
|
r->sclock_synced_button.signal_toggled().connect (sigc::mem_fun (*r, &TransportMastersWidget::Row::sync_button_toggled));
|
||||||
}
|
}
|
||||||
|
|
||||||
r->tm->PropertyChanged.connect (r->property_change_connection, invalidator (*this), boost::bind (&TransportMastersWidget::Row::prop_change, r, _1), gui_context());
|
r->tm->PropertyChanged.connect (r->property_change_connection, invalidator (*r), boost::bind (&TransportMastersWidget::Row::prop_change, r, _1), gui_context());
|
||||||
|
|
||||||
PropertyChange all_change;
|
PropertyChange all_change;
|
||||||
all_change.add (Properties::locked);
|
all_change.add (Properties::locked);
|
||||||
|
Loading…
Reference in New Issue
Block a user