From 85b208da9b36ce93f0924f4ee0b026f6587d235c Mon Sep 17 00:00:00 2001 From: Yusuke Nakamura Date: Sun, 26 Oct 2014 12:32:36 +0900 Subject: [PATCH] box: Remove redundant 'if's for freeing. --- core/box.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/box.c b/core/box.c index 3aee38b..51a316c 100644 --- a/core/box.c +++ b/core/box.c @@ -550,8 +550,7 @@ static void isom_remove_file( lsmash_file_t *file ) isom_remove_timelines( file ); #endif lsmash_free( file->compatible_brands ); - if( file->bs ) - lsmash_bs_cleanup( file->bs ); + lsmash_bs_cleanup( file->bs ); if( file->fragment ) { lsmash_remove_list( file->fragment->pool, isom_remove_sample_pool ); @@ -621,8 +620,7 @@ static void isom_remove_hdlr( isom_hdlr_t *hdlr ) { if( !hdlr ) return; - if( hdlr->componentName ) - lsmash_free( hdlr->componentName ); + lsmash_free( hdlr->componentName ); if( hdlr->parent ) { if( lsmash_check_box_type_identical( hdlr->parent->type, ISOM_BOX_TYPE_MDIA ) ) -- 2.11.4.GIT