aboutsummaryrefslogtreecommitdiffstats
path: root/mail
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
parent91259ad3c04665082bbac0f2dbc073e008b3c957 (diff)
downloadgsoc2013-evolution-4f12e85340ad5b55a9a2fefd8aa0abfb422ddda3.tar
gsoc2013-evolution-4f12e85340ad5b55a9a2fefd8aa0abfb422ddda3.tar.gz
gsoc2013-evolution-4f12e85340ad5b55a9a2fefd8aa0abfb422ddda3.tar.bz2
gsoc2013-evolution-4f12e85340ad5b55a9a2fefd8aa0abfb422ddda3.tar.lz
gsoc2013-evolution-4f12e85340ad5b55a9a2fefd8aa0abfb422ddda3.tar.xz
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')
-rw-r--r--mail/ChangeLog9
-rw-r--r--mail/mail-config.c6
-rw-r--r--mail/mail-signature-editor.c1
-rw-r--r--mail/mail-tools.c1
4 files changed, 15 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 9edc77184d..74f9856dc0 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,14 @@
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.
+
* mail-config-factory.c (config_control_factory_cb): Ref the prefs
widget here since we unref in the destroy callback. Caught this
thanks to purify.
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
diff --git a/mail/mail-signature-editor.c b/mail/mail-signature-editor.c
index fa36abdce0..0ebaca5c72 100644
--- a/mail/mail-signature-editor.c
+++ b/mail/mail-signature-editor.c
@@ -100,6 +100,7 @@ menu_file_save_cb (BonoboUIComponent *uic,
printf ("basename = %s\n", filename);
filename = g_strdup_printf ("%s/.#%s", dirname, filename);
printf ("filename = %s\n", filename);
+ g_free (dirname);
CORBA_exception_init (&ev);
diff --git a/mail/mail-tools.c b/mail/mail-tools.c
index d80b3c04fa..cf9dd484da 100644
--- a/mail/mail-tools.c
+++ b/mail/mail-tools.c
@@ -237,6 +237,7 @@ mail_tool_destroy_xevolution (XEvolution *xev)
g_free (xev->source);
g_free (xev->transport);
g_free (xev->account);
+ g_free (xev->format);
g_free (xev->fcc);
g_free (xev);
}