[vlc-commits] flac: fix memory leak

Hannes Domani git at videolan.org
Tue Sep 2 20:24:16 CEST 2014


vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Fri Aug 29 18:18:38 2014 +0200| [52897c9020a3b8044d77866605068509924a585c] | committer: Tristan Matthews

flac: fix memory leak

Signed-off-by: Tristan Matthews <le.businessman at gmail.com>

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

 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