From: Jason Garrett-Glaser Date: Mon, 14 Sep 2009 19:30:38 +0000 (-0700) Subject: Add missing fclose for mbtree input statsfile on second pass X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=dd026f296748ef370f1651fdbddec6d9238c6cc0;p=x264.git Add missing fclose for mbtree input statsfile on second pass Bug report by VFRmaniac --- diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c index 64ca6f5d..12c6fc53 100644 --- a/encoder/ratecontrol.c +++ b/encoder/ratecontrol.c @@ -841,6 +841,8 @@ void x264_ratecontrol_delete( x264_t *h ) x264_free( rc->psz_mbtree_stat_file_tmpname ); x264_free( rc->psz_mbtree_stat_file_name ); } + if( rc->p_mbtree_stat_file_in ) + fclose( rc->p_mbtree_stat_file_in ); x264_free( rc->pred ); x264_free( rc->pred_b_from_p ); x264_free( rc->entry );