plug a small leak.

2006-05-15  Paolo Borelli  <pborelli@katamail.com>

	* src/prefs.c (update_binding): plug a small leak.
This commit is contained in:
Paolo Borelli 2006-05-15 06:59:30 +00:00 committed by Paolo Borelli
parent ff87e70e8d
commit fb3b5c92f8
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2006-05-15 Paolo Borelli <pborelli@katamail.com>
* src/prefs.c (update_binding): plug a small leak.
2006-05-12 Elijah Newren <newren gmail com>
* configure.in: I don't think we want a config file for the

View File

@ -2201,9 +2201,8 @@ update_binding (MetaKeyPref *binding,
binding->name,
value);
old_setting = meta_ui_accelerator_name(
combo->keysym,
combo->modifiers);
old_setting = meta_ui_accelerator_name (combo->keysym,
combo->modifiers);
if (!strcmp(old_setting, value))
{
@ -2213,6 +2212,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;
}