Commit 0642e139 authored by Loren Merritt's avatar Loren Merritt

fix a memleak in h->mb.mvr


git-svn-id: svn://svn.videolan.org/x264/trunk@702 df754926-b1dd-0310-bc7b-ec298dee348c
parent 290de963
......@@ -914,11 +914,8 @@ void x264_macroblock_cache_end( x264_t *h )
for( j=0; j<3; j++ )
x264_free( h->mb.intra_border_backup[i][j] - 8 );
for( i=0; i<2; i++ )
{
int i_refs = i ? 1 + h->param.b_bframe_pyramid : h->param.i_frame_reference;
for( j=0; j < i_refs; j++ )
for( j=0; j<32; j++ )
x264_free( h->mb.mvr[i][j] );
}
if( h->param.b_cabac )
{
x264_free( h->mb.chroma_pred_mode );
......
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