mirror of
https://github.com/swaywm/sway.git
synced 2026-04-21 06:46:22 -04:00
root: free fallback_output on root_destroy
This fixes memory leaks.
This commit is contained in:
parent
40eb29e7c5
commit
bb0a02f84c
1 changed files with 3 additions and 0 deletions
|
|
@ -52,6 +52,9 @@ void root_destroy(struct sway_root *root) {
|
|||
list_free(root->scratchpad);
|
||||
list_free(root->outputs);
|
||||
wlr_output_layout_destroy(root->output_layout);
|
||||
list_free(root->fallback_output->workspaces);
|
||||
list_free(root->fallback_output->current.workspaces);
|
||||
free(root->fallback_output);
|
||||
free(root);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue