Browse Source

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.
pull/22/head
reuk Tom Poole 2 years ago
parent
commit
4b05efd7b7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/native/juce_win32_Windowing.cpp

+ 1
- 1
modules/juce_gui_basics/native/juce_win32_Windowing.cpp View File

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


Loading…
Cancel
Save