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
This commit is contained in:
Jeffrey Stedfast 2002-04-17 02:36:39 +00:00 committed by Jeffrey Stedfast
parent 91259ad3c0
commit 4f12e85340
4 changed files with 15 additions and 2 deletions

View File

@ -1,5 +1,14 @@
2002-04-16 Jeffrey Stedfast <fejj@ximian.com> 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 * mail-config-factory.c (config_control_factory_cb): Ref the prefs
widget here since we unref in the destroy callback. Caught this widget here since we unref in the destroy callback. Caught this
thanks to purify. thanks to purify.

View File

@ -442,7 +442,7 @@ config_read_signatures ()
static void static void
config_write_signature (MailConfigSignature *sig, gint i) config_write_signature (MailConfigSignature *sig, gint i)
{ {
gchar *path; char *path;
printf ("config_write_signature i: %d id: %d\n", i, sig->id); 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); path = g_strdup_printf ("/Mail/Signatures/random_%d", i);
bonobo_config_set_boolean (config->db, path, sig->random, NULL); bonobo_config_set_boolean (config->db, path, sig->random, NULL);
g_free (path);
path = g_strdup_printf ("/Mail/Signatures/html_%d", i); path = g_strdup_printf ("/Mail/Signatures/html_%d", i);
bonobo_config_set_boolean (config->db, path, sig->html, NULL); bonobo_config_set_boolean (config->db, path, sig->html, NULL);
g_free (path);
} }
static void static void

View File

@ -100,6 +100,7 @@ menu_file_save_cb (BonoboUIComponent *uic,
printf ("basename = %s\n", filename); printf ("basename = %s\n", filename);
filename = g_strdup_printf ("%s/.#%s", dirname, filename); filename = g_strdup_printf ("%s/.#%s", dirname, filename);
printf ("filename = %s\n", filename); printf ("filename = %s\n", filename);
g_free (dirname);
CORBA_exception_init (&ev); CORBA_exception_init (&ev);

View File

@ -237,6 +237,7 @@ mail_tool_destroy_xevolution (XEvolution *xev)
g_free (xev->source); g_free (xev->source);
g_free (xev->transport); g_free (xev->transport);
g_free (xev->account); g_free (xev->account);
g_free (xev->format);
g_free (xev->fcc); g_free (xev->fcc);
g_free (xev); g_free (xev);
} }