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

Windows: Fix nullptr dereference when reopening plugin windows

On Windows, when opening a plugin editor, destroying the plugin
instance, and then creating a new instance and opening its editor, the
plugin would crash because the VBlankDispatcher singleton could not be
recreated.
This commit is contained in:
reuk 2022-06-23 12:46:08 +01:00 committed by Tom Poole
parent 2b16c1b94c
commit 4b05efd7b7

View file

@ -1573,7 +1573,7 @@ public:
threads.end());
}
JUCE_DECLARE_SINGLETON_SINGLETHREADED (VBlankDispatcher, true)
JUCE_DECLARE_SINGLETON_SINGLETHREADED (VBlankDispatcher, false)
private:
//==============================================================================