root: free fallback_output on root_destroy

This fixes memory leaks.
This commit is contained in:
Tobias Predel 2023-02-01 20:28:22 +01:00
parent 40eb29e7c5
commit bb0a02f84c

View file

@ -52,6 +52,9 @@ void root_destroy(struct sway_root *root) {
list_free(root->scratchpad); list_free(root->scratchpad);
list_free(root->outputs); list_free(root->outputs);
wlr_output_layout_destroy(root->output_layout); 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); free(root);
} }