From 5ca1e22feff3bbe693d1ba9b1299d8bfeb0d933b Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Thu, 23 Jul 2020 17:36:20 -0400 Subject: reorder teardowns --- dwl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index 00ba8d9..7c35ae9 100644 --- a/dwl.c +++ b/dwl.c @@ -1653,10 +1653,12 @@ main(int argc, char *argv[]) /* Once wl_display_run returns, we shut down the server. */ wlr_xwayland_destroy(xwayland); wl_display_destroy_clients(dpy); - wlr_xcursor_manager_destroy(cursor_mgr); wl_display_destroy(dpy); + + wlr_xcursor_manager_destroy(cursor_mgr); wlr_cursor_destroy(cursor); wlr_output_layout_destroy(output_layout); + return EXIT_SUCCESS; usage: -- cgit v1.2.3