protect RouteUI's destructor from crashes caused by MeterStrips with no route.
MeterStrip class heirarchy needs fundamental redesign.
This commit is contained in:
parent
9b2a78a0b2
commit
e31d6a90f7
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user