summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodeo <[email protected]>2013-01-06 22:36:38 +0000
committerRodeo <[email protected]>2013-01-06 22:36:38 +0000
commit82f56833470571805e6af0b3a25a1779ebfb7216 (patch)
tree91d076f832d444a0ca1708234359ea95331c9505
parent768e25fbe4fee5f0fc66dfaccdf0cd46fdebf458 (diff)
MacGui: free(NULL) is perfectly safe.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5165 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/Controller.m17
1 files changed, 7 insertions, 10 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m
index 9eb594c66..d10bcce3e 100644
--- a/macosx/Controller.m
+++ b/macosx/Controller.m
@@ -2903,11 +2903,11 @@ fWorkingCount = 0;
hb_job_set_advanced_opts(job, advanced_opts_tmp);
hb_job_set_x264_profile (job, h264_profile_tmp);
hb_job_set_x264_level (job, h264_level_tmp);
- if (x264_preset_tmp != NULL) free(x264_preset_tmp);
- if (x264_tune_tmp != NULL) free(x264_tune_tmp);
- if (advanced_opts_tmp != NULL) free(advanced_opts_tmp);
- if (h264_profile_tmp != NULL) free(h264_profile_tmp);
- if (h264_level_tmp != NULL) free(h264_level_tmp);
+ free(x264_preset_tmp);
+ free(x264_tune_tmp);
+ free(advanced_opts_tmp);
+ free(h264_profile_tmp);
+ free(h264_level_tmp);
}
@@ -5600,11 +5600,8 @@ the user is using "Custom" settings by determining the sender*/
// prepare the width and height (FIXME)
unparse_width = 1280;
unparse_height = 720;
- // if the previous unparsed string is non-NULL, free it
- if (fX264PresetsUnparsedUTF8String != NULL)
- {
- free(fX264PresetsUnparsedUTF8String);
- }
+ // free the previous unparsed string
+ free(fX264PresetsUnparsedUTF8String);
// now, unparse
fX264PresetsUnparsedUTF8String = hb_x264_param_unparse(x264_preset,
x264_tune,