diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2014-11-17 23:31:25 -0800 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2014-11-17 23:32:28 -0800 |
commit | 23f52fd41b4ebdaeade95cf0bc98b7f7e51f6038 (patch) | |
tree | 1ac1a102a6b507fe691397fab45d781e42f79502 /audio/out | |
parent | ebd161b2569ad9374616b3b973f2ccdb73be6aff (diff) | |
download | mpv-23f52fd41b4ebdaeade95cf0bc98b7f7e51f6038.tar.bz2 mpv-23f52fd41b4ebdaeade95cf0bc98b7f7e51f6038.tar.xz |
ao/wasapi: fix leaked event handles
Diffstat (limited to 'audio/out')
-rw-r--r-- | audio/out/ao_wasapi.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/audio/out/ao_wasapi.c b/audio/out/ao_wasapi.c index 5b494c4d72..9ee890fe67 100644 --- a/audio/out/ao_wasapi.c +++ b/audio/out/ao_wasapi.c @@ -160,12 +160,11 @@ exit_label: static void closehandles(struct ao *ao) { struct wasapi_state *state = (struct wasapi_state *)ao->priv; - if (state->init_done) - CloseHandle(state->init_done); - if (state->hUninit) - CloseHandle(state->hUninit); - if (state->hFeed) - CloseHandle(state->hFeed); + if (state->init_done) CloseHandle(state->init_done); + if (state->hUninit) CloseHandle(state->hUninit); + if (state->hFeed) CloseHandle(state->hFeed); + if (state->hForceFeed) CloseHandle(state->hForceFeed); + if (state->hFeedDone) CloseHandle(state->hFeedDone); } static void uninit(struct ao *ao) |