core: fix crash in data device on shutdown (#9997)
This commit is contained in:
parent
0a7e2cb152
commit
0dc531c4a7
1 changed files with 1 additions and 1 deletions
|
|
@ -420,7 +420,7 @@ void CWLDataDeviceProtocol::destroyResource(CWLDataOfferResource* resource) {
|
||||||
|
|
||||||
SP<IDataDevice> CWLDataDeviceProtocol::dataDeviceForClient(wl_client* c) {
|
SP<IDataDevice> CWLDataDeviceProtocol::dataDeviceForClient(wl_client* c) {
|
||||||
#ifndef NO_XWAYLAND
|
#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();
|
return g_pXWayland->pWM->getDataDevice();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue