diff options
author | jstebbins <[email protected]> | 2013-11-18 19:15:38 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2013-11-18 19:15:38 +0000 |
commit | ca8fe7c1fe8abf869d4c53e31124c5f0b1aa8dfa (patch) | |
tree | f21b14c6a85498d39c0e91e40bab1b39b1dabab2 | |
parent | edf3b583b3b88b1d97910bfc636b1f6e225a2af2 (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.c | 3 |
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; } |