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

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) {