diff options
| author | vaxerski <vaxry@vaxry.net> | 2024-07-28 23:41:36 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2024-07-28 23:41:41 +0200 |
| commit | 256db08aed3bf045a8268dddaf15a96558bbcf2a (patch) | |
| tree | def85be6095799333f22d0f0f7d94eea4a1084b9 /src/desktop/LayerSurface.cpp | |
| parent | 73d09953e84ae4f320498fee8522295899972f25 (diff) | |
layersurface: null check for surface validity before unmap()
Diffstat (limited to 'src/desktop/LayerSurface.cpp')
| -rw-r--r-- | src/desktop/LayerSurface.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/desktop/LayerSurface.cpp b/src/desktop/LayerSurface.cpp index f3db4b61..3a3edc6d 100644 --- a/src/desktop/LayerSurface.cpp +++ b/src/desktop/LayerSurface.cpp @@ -192,7 +192,8 @@ void CLayerSurface::onUnmap() { g_pCompositor->addToFadingOutSafe(self.lock()); mapped = false; - layerSurface->surface->unmap(); + if (layerSurface && layerSurface->surface) + layerSurface->surface->unmap(); startAnimation(false); return; @@ -204,7 +205,8 @@ void CLayerSurface::onUnmap() { startAnimation(false); mapped = false; - layerSurface->surface->unmap(); + if (layerSurface && layerSurface->surface) + layerSurface->surface->unmap(); g_pCompositor->addToFadingOutSafe(self.lock()); |
