13
0

protect RouteUI's destructor from crashes caused by MeterStrips with no route.

MeterStrip class heirarchy needs fundamental redesign.
This commit is contained in:
Paul Davis 2015-04-01 11:58:20 -04:00
parent 9b2a78a0b2
commit e31d6a90f7

View File

@ -87,7 +87,9 @@ RouteUI::RouteUI (ARDOUR::Session* sess)
RouteUI::~RouteUI()
{
gui_object_state().remove_node(route_state_id());
if (_route) {
gui_object_state().remove_node (route_state_id());
}
_route.reset (); /* drop reference to route, so that it can be cleaned up */
route_connections.drop_connections ();