From b61146365f827fd04fe54a79e0c08926c9e2e9b5 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 28 Jul 2017 09:00:31 -0400 Subject: delete slave during Session::destroy --- libs/ardour/session.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libs/ardour/session.cc') diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index d660cf077c..9a7c493fe9 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -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. */ -- cgit v1.2.3