xwayland: don't destroy server client

this potentially leaks, but avoids a UAF

ref #6323
This commit is contained in:
Vaxry 2024-06-03 21:13:38 +02:00
parent 0ac0f32671
commit 5517cc506b

View File

@ -262,8 +262,9 @@ void CXWaylandServer::die() {
if (xwmFDs[1])
close(xwmFDs[1]);
if (xwaylandClient)
wl_client_destroy(xwaylandClient);
// possible crash. Better to leak a bit.
//if (xwaylandClient)
// wl_client_destroy(xwaylandClient);
xwaylandClient = nullptr;
waylandFDs = {-1, -1};