clean up 44fc92c3 (not a threading issue but sigc++ problem)
authorRobin Gareus <robin@gareus.org>
Tue, 30 Jul 2013 15:54:52 +0000 (17:54 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 30 Jul 2013 15:54:52 +0000 (17:54 +0200)
RouteUI is not sigc::trackable itself (only derived classes are)
RouteUI::~RouteUI() does not disconnect from signals on destruction.

gtk2_ardour/route_ui.cc

index 6a114b0e5fb4985eb0f14246aea0c7ebb69592e3..c1dde89c39fea793d30d6a9a15c68ff656faeee0 100644 (file)
@@ -171,7 +171,7 @@ RouteUI::init ()
        monitor_disk_button->signal_button_press_event().connect (sigc::mem_fun(*this, &RouteUI::monitor_disk_press));
        monitor_disk_button->signal_button_release_event().connect (sigc::mem_fun(*this, &RouteUI::monitor_disk_release));
 
-       BusSendDisplayChanged.connect (*this, invalidator (*this), boost::bind(&RouteUI::bus_send_display_changed, this, _1), gui_context());
+       BusSendDisplayChanged.connect_same_thread (*this, boost::bind(&RouteUI::bus_send_display_changed, this, _1));
 }
 
 void