1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00

VST: Fixed a potential crash when resizing host window asynchronously

This commit is contained in:
ed 2020-04-24 17:04:38 +01:00
parent 26901c6106
commit 4c2c0874da

View file

@ -2943,7 +2943,13 @@ public:
setScaleFactorAndDispatchMessage (peer->getPlatformScaleFactor());
#if JUCE_LINUX
MessageManager::callAsync ([this] { componentMovedOrResized (true, true); });
SafePointer<VSTPluginWindow> safeThis (this);
MessageManager::callAsync ([this, safeThis]
{
if (safeThis != nullptr)
componentMovedOrResized (true, true);
});
#else
componentMovedOrResized (true, true);
#endif