summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2013-11-18 19:15:38 +0000
committerjstebbins <[email protected]>2013-11-18 19:15:38 +0000
commitca8fe7c1fe8abf869d4c53e31124c5f0b1aa8dfa (patch)
treef21b14c6a85498d39c0e91e40bab1b39b1dabab2
parentedf3b583b3b88b1d97910bfc636b1f6e225a2af2 (diff)
libhb: fix reporting of buffer allocation statistics during scan
Put hb_buffer_pool_free() in the right position after all buffers allocated during scan are free. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5895 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/scan.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libhb/scan.c b/libhb/scan.c
index f827245e1..cc36fe5da 100644
--- a/libhb/scan.c
+++ b/libhb/scan.c
@@ -284,6 +284,7 @@ finish:
free( data->path );
free( data );
_data = NULL;
+ hb_buffer_pool_free();
}
// -----------------------------------------------
@@ -539,7 +540,6 @@ static int DecodePreviews( hb_scan_t * data, hb_title_t * title )
{
free( info_list );
crop_record_free( crops );
- hb_buffer_pool_free();
return 0;
}
if (data->bd)
@@ -945,7 +945,6 @@ skip_preview:
if (data->dvd)
hb_dvd_stop( data->dvd );
- hb_buffer_pool_free();
return npreviews;
}