aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.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-shell.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-shell.c')
-rw-r--r--shell/e-shell.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index f8b1f2df89..8985f42661 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -2152,7 +2152,7 @@ parse_default_uri (EShell *shell,
{
GConfClient *client;
const char *component_start;
- const char *component;
+ char *component;
const char *p;
char *config_path;
char *path;
@@ -2170,6 +2170,8 @@ parse_default_uri (EShell *shell,
config_path = g_strdup_printf ("/apps/evolution/shell/default_folders/%s_path", component);
path = gconf_client_get_string (client, config_path, NULL);
g_object_unref (client);
+ g_free (component);
+ g_free (config_path);
/* We expect an evolution: URI here, if we don't get it then something
is messed up. */
@@ -2192,6 +2194,7 @@ parse_default_uri (EShell *shell,
*extra_return = g_strdup (p + 1);
}
+ g_free (path);
return TRUE;
}