13
0

delete slave during Session::destroy

This commit is contained in:
Paul Davis 2017-07-28 09:00:31 -04:00
parent d3404f3684
commit b61146365f

View File

@ -100,6 +100,7 @@
#include "ardour/session_playlists.h"
#include "ardour/slave.h"
#include "ardour/smf_source.h"
#include "ardour/slave.h"
#include "ardour/solo_isolate_control.h"
#include "ardour/source_factory.h"
#include "ardour/speakers.h"
@ -684,6 +685,12 @@ Session::destroy ()
EngineStateController::instance()->remove_session();
#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
* callbacks from the engine any more.
*/