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
wlr_xwayland_destroy(xwayland);
xwayland = NULL;
#endif
wl_display_destroy_clients(dpy);
if (child_pid > 0) {