1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

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

This commit is contained in:
ed 2020-04-28 16:48:35 +01:00
parent 2eb14258c7
commit 3bca5221ff

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