diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-04-20 09:18:56 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-04-20 09:18:56 +0800 |
commit | 36ea0df4e02cd27e76d8e28a3a47729aa5e146a8 (patch) | |
tree | 331e9a6c681a7bbbf2543564ce27d11937d85878 /mail/mail-config.c | |
parent | 5d8a4ea16f86e62f1c14c5acffb075aa59e1aa5a (diff) | |
download | gsoc2013-evolution-36ea0df4e02cd27e76d8e28a3a47729aa5e146a8.tar.gz gsoc2013-evolution-36ea0df4e02cd27e76d8e28a3a47729aa5e146a8.tar.zst gsoc2013-evolution-36ea0df4e02cd27e76d8e28a3a47729aa5e146a8.zip |
Free some temporary path buffers.
2002-04-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (config_read_signature): Free some temporary path
buffers.
svn path=/trunk/; revision=16545
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c index f874e56814..3cb1dc9636 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -382,10 +382,10 @@ static MailConfigSignature * config_read_signature (gint i) { MailConfigSignature *sig; - gchar *path, *val; - + char *path, *val; + sig = g_new0 (MailConfigSignature, 1); - + sig->id = i; path = g_strdup_printf ("/Mail/Signatures/name_%d", i); @@ -395,7 +395,7 @@ config_read_signature (gint i) sig->name = val; else g_free (val); - + path = g_strdup_printf ("/Mail/Signatures/filename_%d", i); val = bonobo_config_get_string (config->db, path, NULL); g_free (path); @@ -403,7 +403,7 @@ config_read_signature (gint i) sig->filename = val; else g_free (val); - + path = g_strdup_printf ("/Mail/Signatures/script_%d", i); val = bonobo_config_get_string (config->db, path, NULL); g_free (path); @@ -411,13 +411,15 @@ config_read_signature (gint i) sig->script = val; else g_free (val); - + path = g_strdup_printf ("/Mail/Signatures/random_%d", i); sig->random = bonobo_config_get_boolean_with_default (config->db, path, FALSE, NULL); - + g_free (path); + path = g_strdup_printf ("/Mail/Signatures/html_%d", i); sig->html = bonobo_config_get_boolean_with_default (config->db, path, FALSE, NULL); - + g_free (path); + return sig; } |