twolame: fix chain deallocation
authorTristan Matthews <tmatth@videolan.org>
Tue, 30 Sep 2014 11:45:40 +0000 (07:45 -0400)
committerTristan Matthews <tmatth@videolan.org>
Tue, 30 Sep 2014 11:46:25 +0000 (07:46 -0400)
modules/codec/twolame.c

index b44647e..79c64b7 100644 (file)
@@ -328,7 +328,7 @@ static block_t *Encode( encoder_t *p_enc, block_t *p_aout_buf )
         if( !p_block )
         {
             if( p_chain )
-                block_Release( p_chain );
+                block_ChainRelease( p_chain );
             return NULL;
         }
         memcpy( p_block->p_buffer, p_sys->p_out_buffer, i_used );