[evolution] Bug 542685 – [default-mailer] Leaking GConfValue
- From: Matthew Barnes <mbarnes src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution] Bug 542685 – [default-mailer] Leaking GConfValue
- Date: Sat, 2 May 2009 22:59:51 -0400 (EDT)
commit 20533c3be54a4e3fcb0ab23a15744d3093f8ad6f
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat May 2 22:59:06 2009 -0400
Bug 542685 â?? [default-mailer] Leaking GConfValue
---
plugins/default-mailer/default-mailer.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/default-mailer/default-mailer.c b/plugins/default-mailer/default-mailer.c
index 7069f46..f52bd30 100644
--- a/plugins/default-mailer/default-mailer.c
+++ b/plugins/default-mailer/default-mailer.c
@@ -78,10 +78,10 @@ org_gnome_default_mailer_check_default (EPlugin *ep, ESEventTargetUpgrade *targe
/* See whether the check default mailer key has already been set */
is_key = gconf_client_get(client, GCONF_KEY_CHECKDEFAULT, NULL);
- if(!is_key) {
+ if(!is_key)
gconf_client_set_bool(client, GCONF_KEY_CHECKDEFAULT, TRUE, NULL);
+ else
gconf_value_free (is_key);
- }
/* Check whether we're supposed to check whether or not we are the default mailer */
if(gconf_client_get_bool(client, GCONF_KEY_CHECKDEFAULT, NULL)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]