delete slave during Session::destroy
This commit is contained in:
parent
d3404f3684
commit
b61146365f
@ -100,6 +100,7 @@
|
|||||||
#include "ardour/session_playlists.h"
|
#include "ardour/session_playlists.h"
|
||||||
#include "ardour/slave.h"
|
#include "ardour/slave.h"
|
||||||
#include "ardour/smf_source.h"
|
#include "ardour/smf_source.h"
|
||||||
|
#include "ardour/slave.h"
|
||||||
#include "ardour/solo_isolate_control.h"
|
#include "ardour/solo_isolate_control.h"
|
||||||
#include "ardour/source_factory.h"
|
#include "ardour/source_factory.h"
|
||||||
#include "ardour/speakers.h"
|
#include "ardour/speakers.h"
|
||||||
@ -684,6 +685,12 @@ Session::destroy ()
|
|||||||
EngineStateController::instance()->remove_session();
|
EngineStateController::instance()->remove_session();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* drop slave, if any. We don't use use_sync_source (0) because
|
||||||
|
* there's no reason to do all the other stuff that may happen
|
||||||
|
* when calling that method.
|
||||||
|
*/
|
||||||
|
delete _slave;
|
||||||
|
|
||||||
/* deregister all ports - there will be no process or any other
|
/* deregister all ports - there will be no process or any other
|
||||||
* callbacks from the engine any more.
|
* callbacks from the engine any more.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user