diff options
| author | Ikalco <73481042+ikalco@users.noreply.github.com> | 2025-04-09 11:08:42 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-09 18:08:42 +0200 |
| commit | 0dc531c4a7d6849f2db61084497b3007e92f470b (patch) | |
| tree | 29695386a2454134d6baff5e9f6103d779383b98 /src/protocols/core/DataDevice.cpp | |
| parent | 0a7e2cb152a11db35aa134fad0919bc939f16bae (diff) | |
core: fix crash in data device on shutdown (#9997)
Diffstat (limited to 'src/protocols/core/DataDevice.cpp')
| -rw-r--r-- | src/protocols/core/DataDevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/core/DataDevice.cpp b/src/protocols/core/DataDevice.cpp index 83226e3a..d1a98fb5 100644 --- a/src/protocols/core/DataDevice.cpp +++ b/src/protocols/core/DataDevice.cpp @@ -420,7 +420,7 @@ void CWLDataDeviceProtocol::destroyResource(CWLDataOfferResource* resource) { SP<IDataDevice> CWLDataDeviceProtocol::dataDeviceForClient(wl_client* c) { #ifndef NO_XWAYLAND - if (g_pXWayland->pServer && c == g_pXWayland->pServer->xwaylandClient) + if (g_pXWayland && g_pXWayland->pServer && c == g_pXWayland->pServer->xwaylandClient) return g_pXWayland->pWM->getDataDevice(); #endif |
