Fix potential crash at exit/close.
authorRobin Gareus <robin@gareus.org>
Tue, 21 Feb 2017 00:35:18 +0000 (01:35 +0100)
committerRobin Gareus <robin@gareus.org>
Tue, 21 Feb 2017 00:35:18 +0000 (01:35 +0100)
~DisplaySuspender's  PresentationInfo::unsuspend_change_signal
can try to update Stripable PresentationInfo for a session that's
no longer present.

gtk2_ardour/editor_routes.cc

index 50c0eabc04fad25e75131639f65000502521f704..119387f366de97080757b0e72f3c8665f0741406 100644 (file)
@@ -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());