diff options
author | Tobias Predel <tobias.predel@gmail.com> | 2023-02-01 19:24:17 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-02-02 09:39:58 +0100 |
commit | b31e97e55d76185840f6794811bc8d8b4cd1ebf4 (patch) | |
tree | 7afc74dcad089ec6ff4068dc95b941456e0feb8e | |
parent | Convert to wlr_xwayland_surface_try_from_wlr_surface() (diff) | |
download | sway-b31e97e55d76185840f6794811bc8d8b4cd1ebf4.tar.gz sway-b31e97e55d76185840f6794811bc8d8b4cd1ebf4.tar.zst sway-b31e97e55d76185840f6794811bc8d8b4cd1ebf4.zip |
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) { | |||
50 | void root_destroy(struct sway_root *root) { | 50 | void root_destroy(struct sway_root *root) { |
51 | wl_list_remove(&root->output_layout_change.link); | 51 | wl_list_remove(&root->output_layout_change.link); |
52 | list_free(root->scratchpad); | 52 | list_free(root->scratchpad); |
53 | list_free(root->non_desktop_outputs); | ||
53 | list_free(root->outputs); | 54 | list_free(root->outputs); |
54 | wlr_output_layout_destroy(root->output_layout); | 55 | wlr_output_layout_destroy(root->output_layout); |
55 | free(root); | 56 | free(root); |