mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 15:52:25 +00:00
ao/wasapi: fix leaked event handles
This commit is contained in:
parent
ebd161b256
commit
23f52fd41b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user