diff options
author | jstebbins <[email protected]> | 2014-12-29 18:06:51 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-12-29 18:06:51 +0000 |
commit | bc756f4ca6ce6c1807a56b913568cbf422b5bd52 (patch) | |
tree | 8f4f672d6d827712a06ef9753f53047e62257425 /libhb/hb.c | |
parent | 64ca27c088578cdcb9ac3ff2ea2820de8957b142 (diff) |
libhb: initialize the buffer pool only once
We leak a little memory for the buffer pool lists if we initialize it
with every new hb_handle_t.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6673 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.c')
-rw-r--r-- | libhb/hb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libhb/hb.c b/libhb/hb.c index 141d68f8d..e9d5e38da 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -409,11 +409,6 @@ hb_handle_t * hb_init( int verbose, int update_check ) } } - /* - * Initialise buffer pool - */ - hb_buffer_pool_init(); - h->title_set.list_title = hb_list_init(); h->jobs = hb_list_init(); @@ -1582,6 +1577,11 @@ int hb_global_init() hb_common_global_init(); + /* + * Initialise buffer pool + */ + hb_buffer_pool_init(); + return result; } |