Skip to content

Commit 2e593fe

Browse files
committed
Fix renderer, allocator and scene memory leaks on exit
1 parent 3da3ec0 commit 2e593fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cage.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,5 +630,8 @@ main(int argc, char *argv[])
630630
/* This function is not null-safe, but we only ever get here
631631
with a proper wl_display. */
632632
wl_display_destroy(server.wl_display);
633+
wlr_scene_node_destroy(&server.scene->tree.node);
634+
wlr_allocator_destroy(server.allocator);
635+
wlr_renderer_destroy(server.renderer);
633636
return ret;
634637
}

0 commit comments

Comments
 (0)