diff --git a/src/effects/VST/VSTControlMSW.cpp b/src/effects/VST/VSTControlMSW.cpp index 307f6d39e..2f88ab0be 100644 --- a/src/effects/VST/VSTControlMSW.cpp +++ b/src/effects/VST/VSTControlMSW.cpp @@ -20,6 +20,11 @@ VSTControl::VSTControl() VSTControl::~VSTControl() { + if (mHwnd) + { + mLink->callDispatcher(effEditClose, 0, 0, mHwnd, 0.0); + mHwnd = 0; + } } bool VSTControl::Create(wxWindow *parent, VSTEffectLink *link)