From b2f841f8894e4878aadc99a46601e37eb1d5a94e Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 18 Aug 2020 13:49:56 +0100 Subject: [PATCH] Don't hide juce desktop window before deletion, fixes VST3 crashes Signed-off-by: falkTX --- source/backend/plugin/CarlaPluginJuce.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/backend/plugin/CarlaPluginJuce.cpp b/source/backend/plugin/CarlaPluginJuce.cpp index 4ab0c35d8..bd70e82ae 100644 --- a/source/backend/plugin/CarlaPluginJuce.cpp +++ b/source/backend/plugin/CarlaPluginJuce.cpp @@ -418,6 +418,7 @@ public: void showCustomUI(const bool yesNo) override { CARLA_SAFE_ASSERT_RETURN(fInstance != nullptr,); + carla_debug("CarlaPluginJuce::showCustomUI(%s)", bool2str(yesNo)); if (yesNo) { @@ -450,9 +451,6 @@ public: } else { - if (fWindow != nullptr) - fWindow->hide(); - if (juce::AudioProcessorEditor* const editor = fInstance->getActiveEditor()) delete editor;