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:
parent
e267e8d5ad
commit
fd4125d964
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue