mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-13 04:27:47 -05:00
input: parse_key_binding: free key-codes list if 'bindings' is NULL
This commit is contained in:
parent
9cdccdd2ac
commit
f21ea97037
2 changed files with 3 additions and 1 deletions
3
input.c
3
input.c
|
|
@ -197,7 +197,8 @@ input_parse_key_binding(struct xkb_keymap *keymap, const char *combos,
|
|||
};
|
||||
|
||||
tll_push_back(*bindings, binding);
|
||||
}
|
||||
} else
|
||||
tll_free(key_codes);
|
||||
}
|
||||
|
||||
free(copy);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue