summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2014-11-17 23:43:51 -0800
committerKevin Mitchell <kevmitch@gmail.com>2014-11-17 23:43:51 -0800
commit20d42b3475d68cd98f49e9008b3f6a9d4d334e0f (patch)
tree9405ba4d9fa9bcbdf998889d56f857a1cb37c1b8 /audio
parent23f52fd41b4ebdaeade95cf0bc98b7f7e51f6038 (diff)
downloadmpv-20d42b3475d68cd98f49e9008b3f6a9d4d334e0f.tar.bz2
mpv-20d42b3475d68cd98f49e9008b3f6a9d4d334e0f.tar.xz
ao/wasapi: also free the threadLoop handle on uninit
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682453%28v=vs.85%29.aspx
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_wasapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/out/ao_wasapi.c b/audio/out/ao_wasapi.c
index 9ee890fe67..4f982f7a7b 100644
--- a/audio/out/ao_wasapi.c
+++ b/audio/out/ao_wasapi.c
@@ -165,6 +165,7 @@ static void closehandles(struct ao *ao)
if (state->hFeed) CloseHandle(state->hFeed);
if (state->hForceFeed) CloseHandle(state->hForceFeed);
if (state->hFeedDone) CloseHandle(state->hFeedDone);
+ if (state->threadLoop) CloseHandle(state->threadLoop);
}
static void uninit(struct ao *ao)