summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/ardour/session.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index af0f66a889..f6f22ea1e3 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -749,8 +749,13 @@ Session::destroy ()
clear_clicks ();
/* need to remove auditioner before monitoring section
- * otherwise it is re-connected */
- auditioner->drop_references ();
+ * otherwise it is re-connected.
+ * Note: If a session was never successfully loaded, there
+ * may not yet be an auditioner.
+ */
+ if (auditioner) {
+ auditioner->drop_references ();
+ }
auditioner.reset ();
/* drop references to routes held by the monitoring section