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 committed Jan 31, 2025
1 parent ef03f69 commit e1842fe
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 e1842fe

Please sign in to comment.