diff options
author | Paolo Borelli <pborelli@katamail.com> | 2006-05-15 07:03:52 +0000 |
---|---|---|
committer | Paolo Borelli <pborelli@src.gnome.org> | 2006-05-15 07:03:52 +0000 |
commit | 772d96e21f16952c9ba528fa76fef05b4f70ff7f (patch) | |
tree | 8bb199a418020e78fa15ccd0d46e4cfc9bfa9c8e | |
parent | 772e50e682c992c638e63cace7f816a1f8610e53 (diff) | |
download | metacity-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-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/prefs.c | 8 |
2 files changed, 8 insertions, 4 deletions
@@ -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; } |