diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 14bdfe1..82fff90 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -178,6 +178,8 @@ PaulstretchpluginAudioProcessor::PaulstretchpluginAudioProcessor() PaulstretchpluginAudioProcessor::~PaulstretchpluginAudioProcessor() { g_activeprocessors.erase(this); + m_thumb->removeAllChangeListeners(); + m_thumb = nullptr; m_bufferingthread.stopThread(1000); }