[gnome-control-center] keyboard: Fix a small memory leak
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] keyboard: Fix a small memory leak
- Date: Thu, 30 Jun 2011 12:12:31 +0000 (UTC)
commit a6d3ad6af357731da213695ac37e04afc8a79448
Author: Florian MÃllner <fmuellner gnome org>
Date: Wed Jun 29 06:12:10 2011 +0200
keyboard: Fix a small memory leak
Unless g_conf_client_get_string(), g_settings_get_string() always
returns a newly allocated string.
https://bugzilla.gnome.org/show_bug.cgi?id=653613
panels/keyboard/cc-keyboard-item.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/keyboard/cc-keyboard-item.c b/panels/keyboard/cc-keyboard-item.c
index dbadfb3..35f27bb 100644
--- a/panels/keyboard/cc-keyboard-item.c
+++ b/panels/keyboard/cc-keyboard-item.c
@@ -410,6 +410,7 @@ binding_changed (GSettings *settings,
value = g_settings_get_string (item->settings, item->key);
item->editable = g_settings_is_writable (item->settings, item->key);
_set_binding (item, value, FALSE);
+ g_free (value);
g_object_notify (G_OBJECT (item), "binding");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]