From af098a1985e774f9fda1e73422bf79bca26941d1 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 14 Dec 2018 10:07:10 +0000 Subject: [PATCH] VST3: Call setVisible (false) on the editor content component before removing it from the desktop on Windows to avoid an OpenGLTexture leak --- modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp index a3375a1b24..0bf6ed0611 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -874,6 +874,7 @@ private: if (component != nullptr) { #if JUCE_WINDOWS + component->setVisible (false); component->removeFromDesktop(); #else if (macHostWindow != nullptr)