summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorsr55 <[email protected]>2013-12-12 19:00:15 +0000
committersr55 <[email protected]>2013-12-12 19:00:15 +0000
commit4161109303811da898d700e1454d9da9b64ff3c6 (patch)
tree349004a734446eac9ce90b9e5e7e622408710d56 /libhb
parent005bf45c97513a71a33ff83b72ca9fe8c649c1aa (diff)
Fix a Segfault (attempt 2) where the job struct is used after it's closed.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5928 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/work.c7
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 );
}