Skip to content

Commit

Permalink
desktop: fix segfault when destroying a partially create layer surface (
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueZeeKing authored and vaxerski committed Feb 2, 2025
1 parent c8eec19 commit 047ea02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/desktop/LayerSurface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 047ea02

Please sign in to comment.