Browse Source

VST3: Don't remove content wrapper component from desktop before destroying on Linux

tags/2021-05-28
ed 5 years ago
parent
commit
e19b1bde71
1 changed files with 5 additions and 6 deletions
  1. +5
    -6
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 5
- 6
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -1180,14 +1180,13 @@ private:
{ {
if (component != nullptr) if (component != nullptr)
{ {
#if JUCE_WINDOWS || JUCE_LINUX
#if JUCE_WINDOWS
component->removeFromDesktop(); component->removeFromDesktop();
#if JUCE_LINUX
fdCallbackMap.clear();
#elif JUCE_LINUX
fdCallbackMap.clear();
if (auto* runLoop = getHostRunLoop())
runLoop->unregisterEventHandler (this);
#endif
if (auto* runLoop = getHostRunLoop())
runLoop->unregisterEventHandler (this);
#else #else
if (macHostWindow != nullptr) if (macHostWindow != nullptr)
{ {


Loading…
Cancel
Save