[vlc-commits] aout: fix memory leak

Rémi Denis-Courmont git at videolan.org
Tue Nov 6 22:58:12 CET 2012


vlc/vlc-2.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov  6 23:57:13 2012 +0200| [beb1a09952e6cb1948305743ba210a6a7914d833] | committer: Rémi Denis-Courmont

aout: fix memory leak

(not cherry-picked from f8e940016f9d710ebfafe8e3898fe591dd9c76c2)

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

 src/audio_output/dec.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index ab61214..3c77723 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -208,7 +208,10 @@ static void aout_CheckRestart (audio_output_t *aout)
     const aout_request_vout_t request_vout = owner->input->request_vout;
 
     if (likely(owner->input != NULL))
+    {
         aout_InputDelete (aout, owner->input);
+        free (owner->input);
+    }
     owner->input = NULL;
 
     /* Reinitializes the output */



More information about the vlc-commits mailing list