Don't leak a list when activating keybindings
Patch by Rui Matos, https://bugzilla.gnome.org/show_bug.cgi?id=647790
This commit is contained in:
@ -372,8 +372,9 @@ keyval_in_group (GdkKeymap *keymap,
|
|||||||
* This means that fuzzy matches won't be considered if their keyval is
|
* This means that fuzzy matches won't be considered if their keyval is
|
||||||
* present in the current group.
|
* present in the current group.
|
||||||
*
|
*
|
||||||
* Return value: A #GSList of matching entries.
|
* Return value: A newly-allocated #GSList of matching entries.
|
||||||
**/
|
* Free with g_slist_free() when no longer needed.
|
||||||
|
*/
|
||||||
GSList *
|
GSList *
|
||||||
_gtk_key_hash_lookup (GtkKeyHash *key_hash,
|
_gtk_key_hash_lookup (GtkKeyHash *key_hash,
|
||||||
guint16 hardware_keycode,
|
guint16 hardware_keycode,
|
||||||
|
|||||||
@ -1860,8 +1860,11 @@ gtk_menu_shell_activate_mnemonic (GtkMenuShell *menu_shell,
|
|||||||
event->group);
|
event->group);
|
||||||
|
|
||||||
if (entries)
|
if (entries)
|
||||||
result = _gtk_mnemonic_hash_activate (mnemonic_hash,
|
{
|
||||||
GPOINTER_TO_UINT (entries->data));
|
result = _gtk_mnemonic_hash_activate (mnemonic_hash,
|
||||||
|
GPOINTER_TO_UINT (entries->data));
|
||||||
|
g_slist_free (entries);
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user