static void
ClearCompatInfo(CompatInfo *info)
{
- ActionInfo *next_act;
SymInterpInfo *si, *next_si;
LEDInfo *led, *next_led;
struct xkb_keymap *keymap = info->keymap;
XkbNumKbdGroups * sizeof(GroupCompatInfo));
list_foreach_safe(led, next_led, &info->leds, entry)
free(led);
- while (info->act) {
- next_act = info->act->next;
- free(info->act);
- info->act = next_act;
- }
+ FreeActionInfo(info->act);
+ info->act = NULL;
info->keymap = NULL;
ClearVModInfo(&info->vmods, keymap);
}