Commit 5d6c8137 authored by Adrien Maglo's avatar Adrien Maglo Committed by Pierre d'Herbemont

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

Signed-off-by: default avatarPierre d'Herbemont <pdherbemont@videolan.org>
parent b99613a3
...@@ -512,6 +512,7 @@ static void AStreamDestroy( stream_t *s ) ...@@ -512,6 +512,7 @@ static void AStreamDestroy( stream_t *s )
vlc_object_detach( s ); vlc_object_detach( s );
if( p_sys->method == Block ) block_ChainRelease( p_sys->block.p_first ); 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 ); else free( p_sys->stream.p_buffer );
free( p_sys->p_peek ); free( p_sys->p_peek );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment