]> granicus.if.org Git - libx264/commitdiff
fix a memleak in h->mb.mvr
authorLoren Merritt <pengvado@videolan.org>
Mon, 26 Nov 2007 11:44:37 +0000 (11:44 +0000)
committerLoren Merritt <pengvado@videolan.org>
Mon, 26 Nov 2007 11:44:37 +0000 (11:44 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@702 df754926-b1dd-0310-bc7b-ec298dee348c

common/macroblock.c

index 86c82dbb2db514b6d0ce8ce7594bd7cd80a01148..fb2f0cc051654d283f248725fc8fae46dfa91cc4 100644 (file)
@@ -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 );