[vlc-commits] g711: fix leak

Rémi Denis-Courmont git at videolan.org
Wed Apr 13 22:36:21 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 13 23:34:21 2016 +0300| [aa1e892a600a25de31c3b5c633ea9606a06720ec] | committer: Rémi Denis-Courmont

g711: fix leak

Pointed-out-by: Hannes Domani <ssbssa at yahoo.de>

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

 modules/codec/g711.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/codec/g711.c b/modules/codec/g711.c
index 111b65f..613cebd 100644
--- a/modules/codec/g711.c
+++ b/modules/codec/g711.c
@@ -285,9 +285,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
     for( unsigned i = 0; i < samples; i++ )
        *(dst++) = p_sys->table[*(src++)];
 
-    p_block->p_buffer += samples;
-    p_block->i_buffer -= samples;
-
+    block_Release( p_block );
     return p_out;
 }
 



More information about the vlc-commits mailing list