summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2013-12-11 21:30:26 +0000
committersr55 <[email protected]>2013-12-11 21:30:26 +0000
commit005bf45c97513a71a33ff83b72ca9fe8c649c1aa (patch)
tree78db9e2c2436b2b1834800eb4f2a17c8d0e45285
parent3443d1134af988467ef8ac4f2808f5e325ef4eb4 (diff)
Fix a Segfault where the job struct is used after it's closed.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5927 b64f7644-9d1e-0410-96f1-a4d463321fa5
-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 )