mirror of
https://github.com/swaywm/sway.git
synced 2025-02-16 14:24:27 +00:00
root: free non_desktop_outputs list on root_destroy
This fixes a memory leak because the non_desktop_outputs list was not freed when the root was destroyed.
This commit is contained in:
parent
ae2d14ceeb
commit
b31e97e55d
|
@ -50,6 +50,7 @@ struct sway_root *root_create(void) {
|
|||
void root_destroy(struct sway_root *root) {
|
||||
wl_list_remove(&root->output_layout_change.link);
|
||||
list_free(root->scratchpad);
|
||||
list_free(root->non_desktop_outputs);
|
||||
list_free(root->outputs);
|
||||
wlr_output_layout_destroy(root->output_layout);
|
||||
free(root);
|
||||
|
|
Loading…
Reference in a new issue