From 5a2f7c90ce1a6e578fe4dd2a50cfb4279f98cb50 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Tue, 28 Oct 2008 17:59:21 +0000 Subject: [PATCH] * Fixes NB#91062, fixes a memory leak pmo-trunk-r6180 --- src/modest-conf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modest-conf.c b/src/modest-conf.c index 0fd4858..ca7d8be 100644 --- a/src/modest-conf.c +++ b/src/modest-conf.c @@ -135,13 +135,16 @@ modest_conf_init (ModestConf *obj) &error); /* Notify every change under namespace */ - if (!error) + if (!error) { gconf_client_notify_add (priv->gconf_client, "/apps/modest", modest_conf_on_change, obj, NULL, &error); + } else { + g_error_free (error); + } } static void -- 1.7.9.5