* Fixes NB#91062, fixes a memory leak
authorSergio Villar Senin <svillar@igalia.com>
Tue, 28 Oct 2008 17:59:21 +0000 (17:59 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Tue, 28 Oct 2008 17:59:21 +0000 (17:59 +0000)
pmo-trunk-r6180

src/modest-conf.c

index 0fd4858..ca7d8be 100644 (file)
@@ -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