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

Windows: Correctly dispose of hook

This fixes an issue where REAPER was unable to completely unload VST3
plugins.
This commit is contained in:
reuk 2022-02-18 19:18:43 +00:00
parent 89a7d05180
commit c9997bd613
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -758,6 +758,11 @@ public:
#endif
}
~NativeDarkModeChangeDetectorImpl()
{
UnhookWindowsHookEx (hook);
}
bool isDarkModeEnabled() const noexcept { return darkModeEnabled; }
private: