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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user