Browse Source

VST3: Check if plugFrame is still valid in Linux fd callback to fix issue with hosts deleting plugFrame before calling removed()

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

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

@@ -1050,10 +1050,13 @@ private:
#if JUCE_LINUX
void PLUGIN_API onFDIsSet (Steinberg::Linux::FileDescriptor fd) override
{
auto it = fdCallbackMap.find (fd);
if (plugFrame != nullptr)
{
auto it = fdCallbackMap.find (fd);
if (it != fdCallbackMap.end())
it->second (fd);
if (it != fdCallbackMap.end())
it->second (fd);
}
}
#endif


Loading…
Cancel
Save