Bug 542685 – [default-mailer] Leaking GConfValue

This commit is contained in:
Matthew Barnes
2009-05-02 22:59:06 -04:00
parent a6095707f4
commit 20533c3be5

View File

@ -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)) {