sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit b31e97e55d76185840f6794811bc8d8b4cd1ebf4
parent ae2d14ceeb60daf558c879658af596e1e5970ded
Author: Tobias Predel <tobias.predel@gmail.com>
Date:   Wed,  1 Feb 2023 19:24:17 +0100

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.

Diffstat:
Msway/tree/root.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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);