Fix crash when unloading a partially loaded session.
This commit is contained in:
parent
0fd861d8de
commit
87f5cd30d1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user