aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/xwayland
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-06-03 21:13:38 +0200
committerVaxry <[email protected]>2024-06-03 21:13:38 +0200
commit5517cc506b2754cb2485b1bf3e46918ee638ea6d (patch)
treeb75046234dd9ae48aa26119b90ea08004ce4b9ad /src/xwayland
parent0ac0f32671b949b7bde276f1175bed035fb09fd9 (diff)
downloadHyprland-5517cc506b2754cb2485b1bf3e46918ee638ea6d.tar.gz
Hyprland-5517cc506b2754cb2485b1bf3e46918ee638ea6d.zip
xwayland: don't destroy server client
this potentially leaks, but avoids a UAF ref #6323
Diffstat (limited to 'src/xwayland')
-rw-r--r--src/xwayland/Server.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xwayland/Server.cpp b/src/xwayland/Server.cpp
index 510ad737..26010cfb 100644
--- a/src/xwayland/Server.cpp
+++ b/src/xwayland/Server.cpp
@@ -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};