diff --git a/plugins/zynaddsubfx/ZynAddSubFx.cpp b/plugins/zynaddsubfx/ZynAddSubFx.cpp index 7078bc92f..2127c596e 100644 --- a/plugins/zynaddsubfx/ZynAddSubFx.cpp +++ b/plugins/zynaddsubfx/ZynAddSubFx.cpp @@ -143,7 +143,10 @@ ZynAddSubFxInstrument::~ZynAddSubFxInstrument() engine::mixer()->removePlayHandles( instrumentTrack() ); m_pluginMutex.lock(); + delete m_plugin; delete m_remotePlugin; + m_plugin = NULL; + m_remotePlugin = NULL; m_pluginMutex.unlock(); }