aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-03 10:59:06 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-04 00:47:35 +0800
commit4491d3ffd8dee15a3ba71dde5eb234806b121fdf (patch)
tree40fac687a4f010b0d4426e9b81d173a8b59f1de6 /plugins
parente6e0929def4d1ef6d617ec62456aef0a1a2bf87b (diff)
downloadgsoc2013-evolution-4491d3ffd8dee15a3ba71dde5eb234806b121fdf.tar
gsoc2013-evolution-4491d3ffd8dee15a3ba71dde5eb234806b121fdf.tar.gz
gsoc2013-evolution-4491d3ffd8dee15a3ba71dde5eb234806b121fdf.tar.bz2
gsoc2013-evolution-4491d3ffd8dee15a3ba71dde5eb234806b121fdf.tar.lz
gsoc2013-evolution-4491d3ffd8dee15a3ba71dde5eb234806b121fdf.tar.xz
gsoc2013-evolution-4491d3ffd8dee15a3ba71dde5eb234806b121fdf.tar.zst
gsoc2013-evolution-4491d3ffd8dee15a3ba71dde5eb234806b121fdf.zip
Bug 542685 – [default-mailer] Leaking GConfValue
Diffstat (limited to 'plugins')
-rw-r--r--plugins/default-mailer/default-mailer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/default-mailer/default-mailer.c b/plugins/default-mailer/default-mailer.c
index 7069f46e7b..f52bd30855 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)) {