13
0

triggerboxui: explicitly disconnect from update/selection signals

sigc::connection is not scoped, so disconnection is not automation
This commit is contained in:
Paul Davis 2021-12-17 09:53:54 -07:00
parent c58a2a5749
commit d5e13f093f

View File

@ -417,8 +417,11 @@ TriggerBoxUI::TriggerBoxUI (ArdourCanvas::Item* parent, TriggerBox& tb)
TriggerBoxUI::~TriggerBoxUI () TriggerBoxUI::~TriggerBoxUI ()
{ {
_update_connection.disconnect (); /* sigc connection's are not scoped (i.e. they do not disconnect the
functor from the signal when they are destroyed).
*/
_selection_connection.disconnect (); _selection_connection.disconnect ();
_update_connection.disconnect ();
} }
void void