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); }