mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-09 05:33:58 -04: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);
|
tll_push_back(*bindings, binding);
|
||||||
}
|
} else
|
||||||
|
tll_free(key_codes);
|
||||||
}
|
}
|
||||||
|
|
||||||
free(copy);
|
free(copy);
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@ enum bind_action_normal {
|
||||||
struct key_binding_normal {
|
struct key_binding_normal {
|
||||||
struct key_binding bind;
|
struct key_binding bind;
|
||||||
enum bind_action_normal action;
|
enum bind_action_normal action;
|
||||||
|
const char *spawn;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct mouse_binding {
|
struct mouse_binding {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue