diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-06-03 21:13:38 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-06-03 21:13:38 +0200 |
| commit | 5517cc506b2754cb2485b1bf3e46918ee638ea6d (patch) | |
| tree | b75046234dd9ae48aa26119b90ea08004ce4b9ad /src | |
| parent | 0ac0f32671b949b7bde276f1175bed035fb09fd9 (diff) | |
xwayland: don't destroy server client
this potentially leaks, but avoids a UAF
ref #6323
Diffstat (limited to 'src')
| -rw-r--r-- | src/xwayland/Server.cpp | 5 |
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}; |
