[mutter] prefs: Fix memory leak
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] prefs: Fix memory leak
- Date: Mon, 19 Dec 2011 14:45:55 +0000 (UTC)
commit 2eb3ff4bfb073da409be7a7320eb3d75d8ef2bfa
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Dec 18 22:55:26 2011 -0500
prefs: Fix memory leak
src/core/prefs.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/core/prefs.c b/src/core/prefs.c
index 0d3fd59..92aec45 100644
--- a/src/core/prefs.c
+++ b/src/core/prefs.c
@@ -914,6 +914,8 @@ do_override (char *key,
detailed_signal = g_strdup_printf ("changed::%s", key);
handler_id = g_signal_connect (settings, detailed_signal,
G_CALLBACK (settings_changed), NULL);
+ g_free (detailed_signal);
+
g_object_set_data (G_OBJECT (settings), key, GUINT_TO_POINTER (handler_id));
settings_changed (settings, key, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]