From e11996800af113baba45e5462be8fd5d4646b162 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Wed, 23 Jan 2013 19:56:58 +0000 Subject: MacUI: Fix crash caused by double free of advanced_opts git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5197 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/Controller.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'macosx') diff --git a/macosx/Controller.m b/macosx/Controller.m index d19f7f754..30be98ece 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -2881,7 +2881,7 @@ fWorkingCount = 0; { char *x264_preset_tmp = job->x264_preset != NULL ? strdup(job->x264_preset) : NULL; char *x264_tune_tmp = job->x264_tune != NULL ? strdup(job->x264_tune) : NULL; - char *advanced_opts_tmp = job->advanced_opts != NULL ? job->advanced_opts : NULL; + char *advanced_opts_tmp = job->advanced_opts != NULL ? strdup(job->advanced_opts) : NULL; char *h264_profile_tmp = job->x264_profile != NULL ? strdup(job->x264_profile) : NULL; char *h264_level_tmp = job->h264_level != NULL ? strdup(job->h264_level) : NULL; /* -- cgit v1.2.3