mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 19:45:58 +01:00
xwayland: don't destroy server client
this potentially leaks, but avoids a UAF ref #6323
This commit is contained in:
parent
0ac0f32671
commit
5517cc506b
1 changed files with 3 additions and 2 deletions
|
@ -262,8 +262,9 @@ void CXWaylandServer::die() {
|
||||||
if (xwmFDs[1])
|
if (xwmFDs[1])
|
||||||
close(xwmFDs[1]);
|
close(xwmFDs[1]);
|
||||||
|
|
||||||
if (xwaylandClient)
|
// possible crash. Better to leak a bit.
|
||||||
wl_client_destroy(xwaylandClient);
|
//if (xwaylandClient)
|
||||||
|
// wl_client_destroy(xwaylandClient);
|
||||||
|
|
||||||
xwaylandClient = nullptr;
|
xwaylandClient = nullptr;
|
||||||
waylandFDs = {-1, -1};
|
waylandFDs = {-1, -1};
|
||||||
|
|
Loading…
Reference in a new issue