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:
parent
91259ad3c0
commit
4f12e85340
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user