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
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

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