diff --git a/input.c b/input.c index 2df8c73a..af0619ac 100644 --- a/input.c +++ b/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); diff --git a/wayland.h b/wayland.h index c47d3c29..9da2c856 100644 --- a/wayland.h +++ b/wayland.h @@ -47,6 +47,7 @@ enum bind_action_normal { struct key_binding_normal { struct key_binding bind; enum bind_action_normal action; + const char *spawn; }; struct mouse_binding {