ZynAddSubFX: delete LocalZynAddSubFX instance in destructor

This is a really embarrassing leak causing LMMS to never cleanup internal
instances of ZynAddSubFX.

Closes #357.
This commit is contained in:
Tobias Doerffel
2014-02-22 20:53:30 +01:00
parent 49a28a7960
commit b9384c52bb

View File

@@ -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();
}