1
0
Fork 0
forked from mia/Aegisub

Fix XAudio2 handle leak

This commit is contained in:
wangqr 2020-05-31 00:18:33 -04:00
parent e2430b6fca
commit 1fda1d2b05

View file

@ -423,7 +423,10 @@ void XAudio2Thread::Run() {
case WAIT_OBJECT_0 + 5:
// Perform suicide
running = false;
goto stop_playback;
pXAudio2->Release();
ResetEvent(is_playing);
playback_should_be_running = false;
break;
}
default: