summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-02-21 01:35:18 +0100
committerRobin Gareus <robin@gareus.org>2017-02-21 01:35:18 +0100
commit3c25d26e91d4703ba76c90d5175aa94e4ddd850b (patch)
treed8aa8dd0570f36e2c28eb45c89dcd19d0962957a /gtk2_ardour
parentc56635e71cc2eff86ac853c8b13bb80e16d7da44 (diff)
Fix potential crash at exit/close.
~DisplaySuspender's PresentationInfo::unsuspend_change_signal can try to update Stripable PresentationInfo for a session that's no longer present.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_routes.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc
index 50c0eabc04..119387f366 100644
--- a/gtk2_ardour/editor_routes.cc
+++ b/gtk2_ardour/editor_routes.cc
@@ -1582,13 +1582,14 @@ struct PresentationInfoVCASorter
void
EditorRoutes::initial_display ()
{
- DisplaySuspender ds;
_model->clear ();
if (!_session) {
return;
}
+ DisplaySuspender ds;
+
StripableList s;
RouteList r (*_session->get_routes());