diff options
| author | Brayden Zee <brayden@blueish.dev> | 2025-01-31 07:33:51 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-31 13:33:51 +0100 |
| commit | ac5668192ed56c50b5612c7670e397a2128eeba6 (patch) | |
| tree | 5f076bcd4256df344a62e7a45500b8b4c106f45d /src/desktop/LayerSurface.cpp | |
| parent | 7d51dee103e22742d425d14faebb0273a64ac8c1 (diff) | |
desktop: fix segfault when destroying a partially create layer surface (#9247)
Diffstat (limited to 'src/desktop/LayerSurface.cpp')
| -rw-r--r-- | src/desktop/LayerSurface.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/desktop/LayerSurface.cpp b/src/desktop/LayerSurface.cpp index e2d0177b..78dae0a9 100644 --- a/src/desktop/LayerSurface.cpp +++ b/src/desktop/LayerSurface.cpp @@ -98,7 +98,8 @@ void CLayerSurface::onDestroy() { onUnmap(); } else { Debug::log(LOG, "Removing LayerSurface that wasn't mapped."); - alpha->setValueAndWarp(0.f); + if (alpha) + alpha->setValueAndWarp(0.f); fadingOut = true; g_pCompositor->addToFadingOutSafe(self.lock()); } |
