diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-15 11:26:13 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-15 11:26:13 +0000 |
| commit | f21ea97037bd11f2375fff5f82dc2d08d0d552b9 (patch) | |
| tree | 6b8989bfdbd8f7dc1afb646e9735875e559e4a09 | |
| parent | term: break out fork+exec functionality to a separate file (diff) | |
input: parse_key_binding: free key-codes list if 'bindings' is NULL
| -rw-r--r-- | input.c | 3 | ||||
| -rw-r--r-- | wayland.h | 1 |
2 files changed, 3 insertions, 1 deletions
@@ -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); @@ -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 { |
