summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@katamail.com>2006-05-15 07:03:52 +0000
committerPaolo Borelli <pborelli@src.gnome.org>2006-05-15 07:03:52 +0000
commit772d96e21f16952c9ba528fa76fef05b4f70ff7f (patch)
tree8bb199a418020e78fa15ccd0d46e4cfc9bfa9c8e
parent772e50e682c992c638e63cace7f816a1f8610e53 (diff)
downloadmetacity-772d96e21f16952c9ba528fa76fef05b4f70ff7f.tar.gz
plug a small leak.
2006-05-15 Paolo Borelli <pborelli@katamail.com> * src/prefs.c (update_binding): plug a small leak.
-rw-r--r--ChangeLog4
-rw-r--r--src/prefs.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 7a89146a..0fb80f31 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-05-15 Paolo Borelli <pborelli@katamail.com>
+
+ * src/prefs.c (update_binding): plug a small leak.
+
2006-05-01 Wouter Bolsterlee <uws+gnome@xs4all.nl>
* configure.in: Put ALL_LINGUAS on one line to fix the
diff --git a/src/prefs.c b/src/prefs.c
index dad0515b..785d2bc2 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -2061,10 +2061,9 @@ update_binding (MetaKeyPref *binding,
binding->name,
value);
- old_setting = meta_ui_accelerator_name(
- binding->keysym,
- binding->modifiers);
-
+ old_setting = meta_ui_accelerator_name (binding->keysym,
+ binding->modifiers);
+
if (!strcmp(old_setting, value))
{
/* We were about to set it to the same value
@@ -2073,6 +2072,7 @@ update_binding (MetaKeyPref *binding,
* meta_ui_accelerator_name. Bail out now
* so we don't get into an infinite loop.
*/
+ g_free (old_setting);
return TRUE;
}