[vlc-commits] wasapi: fix memory leak

Hannes Domani git at videolan.org
Wed Nov 19 19:19:13 CET 2014


vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Wed Nov 19 18:55:21 2014 +0100| [6db8aefc4e1c8fd8397e76c4b222aec63ee15ba2] | committer: Rémi Denis-Courmont

wasapi: fix memory leak

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6db8aefc4e1c8fd8397e76c4b222aec63ee15ba2
---

 modules/audio_output/wasapi.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/audio_output/wasapi.c b/modules/audio_output/wasapi.c
index 73e8160..7a47161 100644
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -450,6 +450,8 @@ static void Stop(aout_stream_t *s)
 
     IAudioClient_Stop(sys->client); /* should not be needed */
     IAudioClient_Release(sys->client);
+
+    free(sys);
 }
 
 vlc_module_begin()



More information about the vlc-commits mailing list