mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
split_string memory leaks cleanedup
This commit is contained in:
parent
9a7f48f872
commit
c8415d7fef
4 changed files with 11 additions and 7 deletions
|
|
@ -129,7 +129,7 @@ static bool cmd_bindsym(struct sway_config *config, int argc, char **argv) {
|
|||
*key = sym;
|
||||
list_add(binding->keys, key);
|
||||
}
|
||||
list_free(split);
|
||||
free_flat_list(split);
|
||||
|
||||
// TODO: Check if there are other commands with this key binding
|
||||
struct sway_mode *mode = config->current_mode;
|
||||
|
|
@ -268,7 +268,7 @@ static bool cmd_floating_mod(struct sway_config *config, int argc, char **argv)
|
|||
}
|
||||
}
|
||||
}
|
||||
list_free(split);
|
||||
free_flat_list(split);
|
||||
if (!config->floating_mod) {
|
||||
sway_log(L_ERROR, "bindsym - unknown keys %s", argv[0]);
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue