aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-04-17 10:36:39 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-04-17 10:36:39 +0800
commit4f12e85340ad5b55a9a2fefd8aa0abfb422ddda3 (patch)
treeda0417c604d748057cc39a999ca3bac78d76e9d5 /mail/mail-config.c
parent91259ad3c04665082bbac0f2dbc073e008b3c957 (diff)
downloadgsoc2013-evolution-4f12e85340ad5b55a9a2fefd8aa0abfb422ddda3.tar.gz
gsoc2013-evolution-4f12e85340ad5b55a9a2fefd8aa0abfb422ddda3.tar.zst
gsoc2013-evolution-4f12e85340ad5b55a9a2fefd8aa0abfb422ddda3.zip
Free the format string.
2002-04-16 Jeffrey Stedfast <fejj@ximian.com> * mail-tools.c (mail_tool_destroy_xevolution): Free the format string. * mail-config.c (config_write_signature): Don't leak the path strings here. * mail-signature-editor.c (menu_file_save_cb): Free the dirname string. svn path=/trunk/; revision=16486
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index e607019636..f874e56814 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -442,7 +442,7 @@ config_read_signatures ()
static void
config_write_signature (MailConfigSignature *sig, gint i)
{
- gchar *path;
+ char *path;
printf ("config_write_signature i: %d id: %d\n", i, sig->id);
@@ -460,9 +460,11 @@ config_write_signature (MailConfigSignature *sig, gint i)
path = g_strdup_printf ("/Mail/Signatures/random_%d", i);
bonobo_config_set_boolean (config->db, path, sig->random, NULL);
-
+ g_free (path);
+
path = g_strdup_printf ("/Mail/Signatures/html_%d", i);
bonobo_config_set_boolean (config->db, path, sig->html, NULL);
+ g_free (path);
}
static void