summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagna@src.gnome.org>2012-07-17 02:24:09 -0400
committerRay Strode <rstrode@redhat.com>2012-07-17 03:38:10 -0400
commit560e530559810154189b3aa4a496e2b2330f7d7f (patch)
treeaf42b65a0b38124c2cfd8ac4f041cb1079d28518 /common
parent2b55fed06ebdaa16f13f957785080f409486c911 (diff)
downloadgdm-560e530559810154189b3aa4a496e2b2330f7d7f.tar.gz
common: plug small memory leak
In the event GDM fails to be parse its settings schema file, settings clients will leak the proxy connection. This commit fixes that.
Diffstat (limited to 'common')
-rw-r--r--common/gdm-settings-client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/gdm-settings-client.c b/common/gdm-settings-client.c
index 0b6b1cc4..70a79997 100644
--- a/common/gdm-settings-client.c
+++ b/common/gdm-settings-client.c
@@ -523,6 +523,7 @@ gdm_settings_client_init (const char *file,
list = NULL;
if (! gdm_settings_parse_schemas (file, root, &list)) {
g_warning ("Unable to parse schemas");
+ g_clear_object (&settings_proxy);
return FALSE;
}