Fix a memleak when using the --use-stream-immediate option.
authorAdrien Maglo <magsoft@videolan.org>
Wed, 30 Jul 2008 09:22:02 +0000 (11:22 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 31 Jul 2008 07:35:47 +0000 (09:35 +0200)
Signed-off-by: Pierre d'Herbemont <pdherbemont@videolan.org>
src/input/stream.c

index d21eeb7..019e5c0 100644 (file)
@@ -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 );