1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00

WASAPI: Fixed a double-deletion crash on older versions of Windows

This commit is contained in:
ed 2019-06-21 18:00:48 +01:00
parent e267e8d5ad
commit fd4125d964

View file

@ -454,6 +454,10 @@ public:
if (client != nullptr)
client->Stop();
// N.B. this is needed to prevent a double-deletion of the IAudioSessionEvents object
// on older versions of Windows
Thread::sleep (5);
deleteSessionEventCallback();
client = nullptr;
ResetEvent (clientEvent);