summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2017-07-09 15:19:28 -0700
committerKevin Mitchell <kevmitch@gmail.com>2017-07-10 21:01:39 -0700
commit71cc28b804b13282029d0c0615b4d5c5e1d31e82 (patch)
treef90c5beee54658f25be7f7fc7feb311591ddb1ac /audio
parent4e93046ddf84f23fb75e497b99f2a8f19b4ee095 (diff)
downloadmpv-71cc28b804b13282029d0c0615b4d5c5e1d31e82.tar.bz2
mpv-71cc28b804b13282029d0c0615b4d5c5e1d31e82.tar.xz
ao_wasapi: fix leak on align hack
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_wasapi_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_wasapi_utils.c b/audio/out/ao_wasapi_utils.c
index 0b42ad5e54..8f5da03545 100644
--- a/audio/out/ao_wasapi_utils.c
+++ b/audio/out/ao_wasapi_utils.c
@@ -996,7 +996,7 @@ retry:
// According to MSDN, we must use this as base after the failure.
IAudioClient_GetBufferSize(state->pAudioClient,
&state->bufferFrameCount);
- SAFE_RELEASE(state->pAudioClient);
+ wasapi_thread_uninit(ao);
align_hack = true;
MP_WARN(ao, "This appears to require a weird Windows 7 hack. Retrying.\n");
goto retry;