prevent a use-after-free at exit
This commit is contained in:
parent
8e3f5364d3
commit
4f4c540bb9
1 changed files with 1 additions and 0 deletions
1
dwl.c
1
dwl.c
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue