From 8e67a586e02672ef7faf001bae1813200f8fb730 Mon Sep 17 00:00:00 2001 From: Fiona 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 b11c7c43..6944a50d 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.40.0