From d5e13f093f5617554c8e2f242da04dc1553adf09 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 17 Dec 2021 09:53:54 -0700 Subject: [PATCH] triggerboxui: explicitly disconnect from update/selection signals sigc::connection is not scoped, so disconnection is not automation --- gtk2_ardour/triggerbox_ui.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/triggerbox_ui.cc b/gtk2_ardour/triggerbox_ui.cc index 0ec6a21dfb..82eef9db64 100644 --- a/gtk2_ardour/triggerbox_ui.cc +++ b/gtk2_ardour/triggerbox_ui.cc @@ -417,8 +417,11 @@ TriggerBoxUI::TriggerBoxUI (ArdourCanvas::Item* parent, TriggerBox& tb) 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 (); + _update_connection.disconnect (); } void