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:
parent
26901c6106
commit
4c2c0874da
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue