diff options
-rw-r--r-- | libhb/work.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libhb/work.c b/libhb/work.c index 02a57c069..e76c88a91 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -1614,14 +1614,15 @@ cleanup: } } } - + + hb_buffer_pool_free(); + /* OpenCL: must be closed *after* freeing the buffer pool */ if (job->use_opencl) { hb_ocl_close(); } - - hb_buffer_pool_free(); + hb_job_close( &job ); } |