From dd026f296748ef370f1651fdbddec6d9238c6cc0 Mon Sep 17 00:00:00 2001 From: Jason Garrett-Glaser Date: Mon, 14 Sep 2009 12:30:38 -0700 Subject: [PATCH] Add missing fclose for mbtree input statsfile on second pass Bug report by VFRmaniac --- encoder/ratecontrol.c | 2 ++ 1 file changed, 2 insertions(+) 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 ); -- 2.47.3