mirror of https://github.com/mpv-player/mpv
ao_wasapi: Fix double free on uninit
Caused by incorrect conversion to the m_option API: since we don't allocate the state ourselves, we also don't free it ourselves.
This commit is contained in:
parent
c62395dc09
commit
58e3d3f207
|
@ -1171,8 +1171,6 @@ static void uninit(struct ao *ao, bool immed)
|
|||
FreeLibrary(state->VistaBlob.hAvrt);
|
||||
closehandles(ao);
|
||||
DeleteCriticalSection(&state->print_lock);
|
||||
talloc_free(state);
|
||||
ao->priv = NULL;
|
||||
mp_msg(MSGT_AO, MSGL_V, "ao-wasapi: uninit END!\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue