diff options
author | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2013-07-21 16:53:20 -0300 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-22 02:42:38 +0200 |
commit | 58e3d3f2073a726e8823becbdcd5262a1048acc2 (patch) | |
tree | 07e040dcf8e9f624777fdeb3340de82e8473d0b6 /audio | |
parent | c62395dc097b2e32be3d5c9318805621c95b1d73 (diff) | |
download | mpv-58e3d3f2073a726e8823becbdcd5262a1048acc2.tar.bz2 mpv-58e3d3f2073a726e8823becbdcd5262a1048acc2.tar.xz |
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.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/out/ao_wasapi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/audio/out/ao_wasapi.c b/audio/out/ao_wasapi.c index 13463ba47c..03a7c767a1 100644 --- a/audio/out/ao_wasapi.c +++ b/audio/out/ao_wasapi.c @@ -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"); } |