Commit 54b6ab86 authored by Tristan Matthews's avatar Tristan Matthews Committed by Jean-Baptiste Kempf

twolame: fix chain deallocation

(cherry picked from commit 1023ecb97f830349989c79aa5b0260d606588c6e)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent ef299372
...@@ -328,7 +328,7 @@ static block_t *Encode( encoder_t *p_enc, block_t *p_aout_buf ) ...@@ -328,7 +328,7 @@ static block_t *Encode( encoder_t *p_enc, block_t *p_aout_buf )
if( !p_block ) if( !p_block )
{ {
if( p_chain ) if( p_chain )
block_Release( p_chain ); block_ChainRelease( p_chain );
return NULL; return NULL;
} }
memcpy( p_block->p_buffer, p_sys->p_out_buffer, i_used ); memcpy( p_block->p_buffer, p_sys->p_out_buffer, i_used );
......
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