potential fix for #6515 - stall/crash during route deletion
authorRobin Gareus <robin@gareus.org>
Thu, 20 Aug 2015 01:38:22 +0000 (03:38 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 20 Aug 2015 01:38:22 +0000 (03:38 +0200)
introduced in 4.1-78-g11e371c

libs/ardour/session.cc

index 6a8a54939d2e1a1cf81afd852ae34dfb4dbf8825..6968f9ba284d14d514e71049608a655edb501e78 100644 (file)
@@ -3420,6 +3420,7 @@ Session::remove_routes (boost::shared_ptr<RouteList> routes_to_remove)
 #ifdef USE_TRACKS_CODE_FEATURES
                reconnect_existing_routes(true, false);
 #else
+               routes.flush (); // maybe unsafe, see below.
                resort_routes ();
 #endif