[vlc-devel] commit: Fix a memleak when using the --use-stream-immediate option. ( Adrien Maglo )

git version control git at videolan.org
Thu Jul 31 09:33:10 CEST 2008


vlc | branch: master | Adrien Maglo <magsoft at videolan.org> | Wed Jul 30 11:22:02 2008 +0200| [5d6c8137d529c3efb773339d65367c954251eb43]

Fix a memleak when using the --use-stream-immediate option.

Signed-off-by: Pierre d'Herbemont <pdherbemont at videolan.org>

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

 src/input/stream.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/input/stream.c b/src/input/stream.c
index d21eeb7..019e5c0 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -512,6 +512,7 @@ static void AStreamDestroy( stream_t *s )
     vlc_object_detach( s );
 
     if( p_sys->method == Block ) block_ChainRelease( p_sys->block.p_first );
+    else if ( p_sys->method == Immediate ) free( p_sys->immediate.p_buffer );
     else free( p_sys->stream.p_buffer );
 
     free( p_sys->p_peek );




More information about the vlc-devel mailing list