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:
parent
2eb14258c7
commit
3bca5221ff
1 changed files with 6 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue