Commit efebe7d7 authored by Fiona Glaser's avatar Fiona Glaser

Add missing free()s for new data allocated for MB-tree

Eliminates a memory leak.
parent 599f024c
......@@ -174,6 +174,13 @@ void x264_frame_delete( x264_frame_t *frame )
x264_free( frame->lowres_mvs[j][i] );
x264_free( frame->lowres_mv_costs[j][i] );
}
x264_free( frame->i_propagate_cost );
for( j = 0; j <= X264_BFRAME_MAX+1; j++ )
for( i = 0; i <= X264_BFRAME_MAX+1; i++ )
{
x264_free( frame->lowres_costs[j][i] );
x264_free( frame->lowres_inter_types[j][i] );
}
x264_free( frame->f_qp_offset );
x264_free( frame->i_inv_qscale_factor );
x264_free( frame->i_intra_cost );
......
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