[vlc-commits] wasapi: fix memory leak

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


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

wasapi: fix memory leak

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 6db8aefc4e1c8fd8397e76c4b222aec63ee15ba2)

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

 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