13
0

Fix crash when unloading a partially loaded session.

This commit is contained in:
Robin Gareus 2017-09-21 17:35:52 +02:00
parent 0fd861d8de
commit 87f5cd30d1

View File

@ -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