vlc | branch: master | Thomas Guillem <[email protected]> | Wed Nov 15 14:57:54 
2017 +0100| [0710485dc37223bc6a9bc2bd937b9cd756dbf0e8] | committer: Thomas 
Guillem

cvdsub: fix memory leak

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

 modules/codec/cvdsub.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/cvdsub.c b/modules/codec/cvdsub.c
index f74a297b1b..3905bec032 100644
--- a/modules/codec/cvdsub.c
+++ b/modules/codec/cvdsub.c
@@ -178,6 +178,7 @@ static int Decode( decoder_t *p_dec, block_t *p_block )
 
     /* Parse and decode */
     subpicture_t *p_spu = DecodePacket( p_dec, p_data );
+    block_Release( p_data );
     if( p_spu != NULL )
         decoder_QueueSub( p_dec, p_spu );
     return VLCDEC_SUCCESS;

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

Reply via email to