From bb0a02f84c436f35b9366bfe5c5afdeb88f752a2 Mon Sep 17 00:00:00 2001 From: Tobias Predel Date: Wed, 1 Feb 2023 20:28:22 +0100 Subject: [PATCH] root: free fallback_output on root_destroy This fixes memory leaks. --- sway/tree/root.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sway/tree/root.c b/sway/tree/root.c index 8934721fd..c042bf250 100644 --- a/sway/tree/root.c +++ b/sway/tree/root.c @@ -52,6 +52,9 @@ void root_destroy(struct sway_root *root) { list_free(root->scratchpad); list_free(root->outputs); 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); }