aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-setup.c
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-04-16 05:27:08 +0800
committerHans Petter <hansp@src.gnome.org>2003-04-16 05:27:08 +0800
commita693beaab485e44e2c35e0c2a5440c7c4a8760c0 (patch)
tree9c35ba0750a90f6d825c1122a55906a380f6b10c /shell/e-setup.c
parent89784ed940d875337fbef17dad1d2332d203587e (diff)
downloadgsoc2013-evolution-a693beaab485e44e2c35e0c2a5440c7c4a8760c0.tar.gz
gsoc2013-evolution-a693beaab485e44e2c35e0c2a5440c7c4a8760c0.tar.zst
gsoc2013-evolution-a693beaab485e44e2c35e0c2a5440c7c4a8760c0.zip
Free the temporary string.
2003-04-15 Hans Petter Jansson <hpj@ximian.com> * 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
Diffstat (limited to 'shell/e-setup.c')
-rw-r--r--shell/e-setup.c9
1 files changed, 8 insertions, 1 deletions
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;
}