forked from mia/Aegisub
Fix XAudio2 handle leak
This commit is contained in:
parent
e2430b6fca
commit
1fda1d2b05
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue