From 58e3d3f2073a726e8823becbdcd5262a1048acc2 Mon Sep 17 00:00:00 2001 From: "Diogo Franco (Kovensky)" Date: Sun, 21 Jul 2013 16:53:20 -0300 Subject: 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. --- audio/out/ao_wasapi.c | 2 -- 1 file changed, 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"); } -- cgit v1.2.3