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> 2006-05-12 Elijah Newren <newren gmail com>
* configure.in: I don't think we want a config file for the * configure.in: I don't think we want a config file for the

View File

@ -2201,10 +2201,9 @@ update_binding (MetaKeyPref *binding,
binding->name, binding->name,
value); value);
old_setting = meta_ui_accelerator_name( old_setting = meta_ui_accelerator_name (combo->keysym,
combo->keysym, combo->modifiers);
combo->modifiers);
if (!strcmp(old_setting, value)) if (!strcmp(old_setting, value))
{ {
/* We were about to set it to the same value /* We were about to set it to the same value
@ -2213,6 +2212,7 @@ update_binding (MetaKeyPref *binding,
* meta_ui_accelerator_name. Bail out now * meta_ui_accelerator_name. Bail out now
* so we don't get into an infinite loop. * so we don't get into an infinite loop.
*/ */
g_free (old_setting);
return TRUE; return TRUE;
} }