[vlc-commits] flac: fix memory leak

Hannes Domani git at videolan.org
Thu Sep 4 05:03:08 CEST 2014


vlc/vlc-2.2 | branch: master | Hannes Domani <ssbssa at yahoo.de> | Fri Aug 29 18:18:38 2014 +0200| [b29a6237f466f471378b3de25565ee9b3fe0d124] | committer: Jean-Baptiste Kempf

flac: fix memory leak

Signed-off-by: Tristan Matthews <le.businessman at gmail.com>
(cherry picked from commit 52897c9020a3b8044d77866605068509924a585c)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/codec/flac.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/codec/flac.c b/modules/codec/flac.c
index b2ee916..e226f19 100644
--- a/modules/codec/flac.c
+++ b/modules/codec/flac.c
@@ -418,6 +418,9 @@ static void ProcessHeader( decoder_t *p_dec )
     }
     FLAC__stream_decoder_process_until_end_of_metadata( p_sys->p_flac );
     msg_Dbg( p_dec, "STREAMINFO decoded" );
+
+    block_Release( p_sys->p_block );
+    p_sys->p_block = NULL;
 }
 
 /*****************************************************************************



More information about the vlc-commits mailing list