prevent a use-after-free at exit

This commit is contained in:
Leonardo Hernández Hernández 2023-11-16 21:00:16 -06:00
parent 8e3f5364d3
commit 4f4c540bb9
Failed to generate hash of commit

1
dwl.c
View file

@ -627,6 +627,7 @@ cleanup(void)
{ {
#ifdef XWAYLAND #ifdef XWAYLAND
wlr_xwayland_destroy(xwayland); wlr_xwayland_destroy(xwayland);
xwayland = NULL;
#endif #endif
wl_display_destroy_clients(dpy); wl_display_destroy_clients(dpy);
if (child_pid > 0) { if (child_pid > 0) {