diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2023-02-01 19:24:17 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2023-02-01 19:24:17 +0100 |
| commit | 020ecc299afcba8c143c37bed75c0b2dac60268d (patch) | |
| tree | 7afc74dcad089ec6ff4068dc95b941456e0feb8e | |
| parent | 8dd7046521348b5b0279380cd1b8da6e956c4b3b (diff) | |
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.
| -rw-r--r-- | sway/tree/root.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/tree/root.c b/sway/tree/root.c index 8934721f..95129a88 100644 --- a/sway/tree/root.c +++ b/sway/tree/root.c @@ -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); |
