13
0

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:
Robin Gareus 2024-09-10 19:21:48 +02:00
parent e8644654c2
commit 8a9a9695aa
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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);