diff options
author | Ian Fan <ianfan0@gmail.com> | 2018-12-09 01:15:23 +0000 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2018-12-09 01:15:38 +0000 |
commit | 98c1e19466c0d83c8e1ca86eda5b273eda7eff3c (patch) | |
tree | b47ccc174669786e3a1df9569046886c23003a45 /sway/commands/bind.c | |
parent | c8776fac4232f9faab0a78ef3e18dc4366496421 (diff) |
list.c: rename free_flat_list to list_free_items_and_destroy
Diffstat (limited to 'sway/commands/bind.c')
-rw-r--r-- | sway/commands/bind.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/commands/bind.c b/sway/commands/bind.c index 886a262c..01a35cf2 100644 --- a/sway/commands/bind.c +++ b/sway/commands/bind.c @@ -23,7 +23,7 @@ void free_sway_binding(struct sway_binding *binding) { return; } - free_flat_list(binding->keys); + list_free_items_and_destroy(binding->keys); free(binding->input); free(binding->command); free(binding); @@ -220,14 +220,14 @@ static struct cmd_results *cmd_bindsym_or_bindcode(int argc, char **argv, uint32_t *key = calloc(1, sizeof(uint32_t)); if (!key) { free_sway_binding(binding); - free_flat_list(split); + list_free_items_and_destroy(split); return cmd_results_new(CMD_FAILURE, bindtype, "Unable to allocate binding key"); } *key = key_val; list_add(binding->keys, key); } - free_flat_list(split); + list_free_items_and_destroy(split); binding->order = binding_order++; // refine region of interest for mouse binding once we are certain |