summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2020-12-27 20:04:05 -0500
committerDevin J. Pohly <djpohly@gmail.com>2020-12-27 20:04:05 -0500
commit313d1f7ecc59ba981fb708a3e564af1733e3289c (patch)
tree274b4ae144eeca0a8e081cf3200327be3474c78d
parenta2a20cca42f392fa57a3e2432ae9c11c0b15f04a (diff)
flesh out cleanup
This is the order of *_destroy calls which resulted in the fewest errors/leaks detected by Valgrind. Most of the errors come from the gbm_allocator code - will have to figure out which destroy call is still missing.
-rw-r--r--dwl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 065e775..df6e4fb 100644
--- a/dwl.c
+++ b/dwl.c
@@ -688,11 +688,13 @@ cleanup(void)
wlr_xwayland_destroy(xwayland);
#endif
wl_display_destroy_clients(dpy);
- wl_display_destroy(dpy);
+ wlr_backend_destroy(backend);
wlr_xcursor_manager_destroy(cursor_mgr);
wlr_cursor_destroy(cursor);
wlr_output_layout_destroy(output_layout);
+ wlr_seat_destroy(seat);
+ wl_display_destroy(dpy);
}
void