diff options
author | Robin Gareus <robin@gareus.org> | 2017-09-21 17:35:52 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-09-21 17:35:52 +0200 |
commit | 87f5cd30d14c718d4d3215fe2fde0d33af300984 (patch) | |
tree | a9c3653eb3e2bd4c11f9084b975cefb9f6bb751e /libs/ardour/session.cc | |
parent | 0fd861d8dedbaa5d262432b05cf9b1fe66381eab (diff) |
Fix crash when unloading a partially loaded session.
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 9 |
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 |