[gnome-settings-daemon] xsettings: plug a mem leak
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] xsettings: plug a mem leak
- Date: Fri, 27 Jan 2012 10:41:59 +0000 (UTC)
commit 1b9d6592348b966e6208acc6b9811491a69e8705
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Jan 26 15:42:55 2012 -0500
xsettings: plug a mem leak
Unref the variant we get from g_settings_get_value()
https://bugzilla.gnome.org/show_bug.cgi?id=668776
plugins/xsettings/gsd-xsettings-manager.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/xsettings/gsd-xsettings-manager.c b/plugins/xsettings/gsd-xsettings-manager.c
index fa49a3e..ab6480a 100644
--- a/plugins/xsettings/gsd-xsettings-manager.c
+++ b/plugins/xsettings/gsd-xsettings-manager.c
@@ -858,6 +858,7 @@ gnome_xsettings_manager_start (GnomeXSettingsManager *manager,
val = g_settings_get_value (settings, translations[i].gsettings_key);
process_value (manager, &translations[i], val);
+ g_variant_unref (val);
}
list = g_hash_table_get_values (manager->priv->settings);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]