diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index f9780dd027..f312fd0d4d 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -2943,7 +2943,13 @@ public: setScaleFactorAndDispatchMessage (peer->getPlatformScaleFactor()); #if JUCE_LINUX - MessageManager::callAsync ([this] { componentMovedOrResized (true, true); }); + SafePointer safeThis (this); + + MessageManager::callAsync ([this, safeThis] + { + if (safeThis != nullptr) + componentMovedOrResized (true, true); + }); #else componentMovedOrResized (true, true); #endif