mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
Clean up output command
Plugs memory leaks during failure of the output command and in other circumstances and fixes `bg` option. Fixes #1381
This commit is contained in:
parent
839064d278
commit
419a1087ac
2 changed files with 51 additions and 25 deletions
|
|
@ -128,6 +128,8 @@ void free_output_config(struct output_config *oc) {
|
|||
return;
|
||||
}
|
||||
free(oc->name);
|
||||
free(oc->background);
|
||||
free(oc->background_option);
|
||||
free(oc);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue