[gdm] common: plug small memory leak
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] common: plug small memory leak
- Date: Tue, 17 Jul 2012 08:24:12 +0000 (UTC)
commit 560e530559810154189b3aa4a496e2b2330f7d7f
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Tue Jul 17 02:24:09 2012 -0400
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.
common/gdm-settings-client.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/common/gdm-settings-client.c b/common/gdm-settings-client.c
index 0b6b1cc..70a7999 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]