Browse Source

Don't hide juce desktop window before deletion, fixes VST3 crashes

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.0-RC1
falkTX 4 years ago
parent
commit
b2f841f889
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      source/backend/plugin/CarlaPluginJuce.cpp

+ 1
- 3
source/backend/plugin/CarlaPluginJuce.cpp View File

@@ -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;



Loading…
Cancel
Save