Skip to content

Commit

Permalink
do not explicitly destroy some wlroots interfaces
Browse files Browse the repository at this point in the history
they are destroyed when the wayland display is destroyed
  • Loading branch information
sevz17 committed Nov 17, 2023
1 parent 7611dc9 commit 6bcd5d8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions dwl.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,15 +634,12 @@ cleanup(void)
kill(child_pid, SIGTERM);
waitpid(child_pid, NULL, 0);
}
wlr_backend_destroy(backend);
wlr_scene_node_destroy(&scene->tree.node);
wlr_renderer_destroy(drw);
wlr_allocator_destroy(alloc);
wlr_xcursor_manager_destroy(cursor_mgr);
wlr_cursor_destroy(cursor);
wlr_output_layout_destroy(output_layout);
wlr_seat_destroy(seat);
wl_display_destroy(dpy);
/* Destroy after the wayland display (when the monitors are already destroyed)
to avoid destroying them with an invalid scene output. */
wlr_scene_node_destroy(&scene->tree.node);
}

void
Expand Down

0 comments on commit 6bcd5d8

Please sign in to comment.