Skip to content

Commit

Permalink
Windows: Fix nullptr dereference when reopening plugin windows
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
reuk committed Jun 24, 2022
1 parent 09d1e97 commit 2f0a0e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/juce_gui_basics/native/juce_win32_Windowing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@ class VBlankDispatcher : public DeletedAtShutdown
threads.end());
}

JUCE_DECLARE_SINGLETON_SINGLETHREADED (VBlankDispatcher, true)
JUCE_DECLARE_SINGLETON_SINGLETHREADED (VBlankDispatcher, false)

private:
//==============================================================================
Expand Down

0 comments on commit 2f0a0e9

Please # to comment.