vlc | branch: master | Hannes Domani <[email protected]> | Fri Aug 29 18:18:38 
2014 +0200| [52897c9020a3b8044d77866605068509924a585c] | committer: Tristan 
Matthews

flac: fix memory leak

Signed-off-by: Tristan Matthews <[email protected]>

> 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;
 }
 
 /*****************************************************************************

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to