From c5522548483dbb3a20acd6e0e7891eeed76b66ab Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Thu, 27 Aug 2015 18:01:39 -0500 Subject: [PATCH] Fix for bug #1163 --- src/effects/VST/VSTControlMSW.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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)