From 6a14c28cf9ed9c5f7eb217bc25c4a736326d3c13 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Wed, 12 Dec 2012 20:21:14 +0000 Subject: fix some crashes in the macui I missed setting some pointers to NULL after free and missed place where the ui was setting job->file directly instead of using hb_job_set_file(). Also, a NULL chapter name caused a crash. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5097 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/common.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libhb/common.c') diff --git a/libhb/common.c b/libhb/common.c index 60c2b4ed7..34c97da54 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -1738,7 +1738,9 @@ static void job_clean( hb_job_t * job ) hb_attachment_t *attachment; free(job->file); + job->file = NULL; free(job->advanced_opts); + job->advanced_opts = NULL; // clean up chapter list while( ( chapter = hb_list_item( job->list_chapter, 0 ) ) ) -- cgit v1.2.3