summaryrefslogtreecommitdiff
path: root/libs/ardour/session.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r--libs/ardour/session.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index e155800d23..a664ca44c7 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -2113,8 +2113,13 @@ Session::remove_route (shared_ptr<Route> route)
/* try to cause everyone to drop their references */
+ cerr << "pre drop, Route now has " << route.use_count() << " refs\n";
+ cerr << "sig has " << route->GoingAway.size() << endl;
+
route->drop_references ();
+ cerr << "route dangling refs = " << route.use_count() << endl;
+
/* save the new state of the world */
if (save_state (_current_snapshot_name)) {