summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/work.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libhb/work.c b/libhb/work.c
index b03ce13e2..02a57c069 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -1614,15 +1614,15 @@ cleanup:
}
}
}
-
- hb_buffer_pool_free();
- hb_job_close( &job );
-
+
/* OpenCL: must be closed *after* freeing the buffer pool */
if (job->use_opencl)
{
hb_ocl_close();
}
+
+ hb_buffer_pool_free();
+ hb_job_close( &job );
}
static inline void copy_chapter( hb_buffer_t * dst, hb_buffer_t * src )