From 286af99defd6126790c20d98f421fe20bf82447d Mon Sep 17 00:00:00 2001 From: Thomas Thurman Date: Tue, 8 Jan 2008 03:13:17 +0000 Subject: [PATCH] g_free is a no-op on nulls; there is no need to test. 2008-01-07 Thomas Thurman * src/core/main.c (main): g_free is a no-op on nulls; there is no need to test. svn path=/trunk/; revision=3510 --- ChangeLog | 5 +++++ src/core/main.c | 9 +++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index e53b0fdc1..0211f6106 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-07 Thomas Thurman + + * src/core/main.c (main): g_free is a no-op on nulls; there is no + need to test. + 2008-01-06 Thomas Thurman * src/core/display.c: Function commenting marathon; more to come. diff --git a/src/core/main.c b/src/core/main.c index 8319fba7c..e250a0dd5 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -402,12 +402,9 @@ main (int argc, char **argv) /* Free memory possibly allocated by the argument parsing which are * no longer needed. */ - if (meta_args.save_file) - g_free (meta_args.save_file); - if (meta_args.display_name) - g_free (meta_args.display_name); - if (meta_args.client_id) - g_free (meta_args.client_id); + g_free (meta_args.save_file); + g_free (meta_args.display_name); + g_free (meta_args.client_id); if (!meta_display_open ()) meta_exit (META_EXIT_ERROR);