From a693beaab485e44e2c35e0c2a5440c7c4a8760c0 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Tue, 15 Apr 2003 21:27:08 +0000 Subject: Free the temporary string. 2003-04-15 Hans Petter Jansson * e-setup.c (e_setup_check_config): Free the temporary string. * e-shell-user-creatable-items-handler.c (append_xml_for_menu_item): Free the icon xml string. * e-shell.c (parse_default_uri): Free the component name, the configuration path and the temporary path. svn path=/trunk/; revision=20849 --- shell/e-setup.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'shell/e-setup.c') diff --git a/shell/e-setup.c b/shell/e-setup.c index 6cd0726b2f..ce9389b781 100644 --- a/shell/e-setup.c +++ b/shell/e-setup.c @@ -303,11 +303,18 @@ e_setup_check_config (const char *evolution_directory) { GConfClient *client; char *tmp; + gboolean present = FALSE; client = gconf_client_get_default (); tmp = gconf_client_get_string (client, "/apps/evolution/shell/default_folders/mail_uri", NULL); - if (tmp != NULL && *tmp != 0) { + if (tmp != NULL) { + if (*tmp != 0) + present = TRUE; + g_free (tmp); + } + + if (present) { g_object_unref (client); return; } -- cgit v1.2.3