desktop: fix segfault when destroying a partially create layer surface (#9247)
This commit is contained in:
parent
7d51dee103
commit
ac5668192e
1 changed files with 2 additions and 1 deletions
|
|
@ -98,7 +98,8 @@ void CLayerSurface::onDestroy() {
|
||||||
onUnmap();
|
onUnmap();
|
||||||
} else {
|
} else {
|
||||||
Debug::log(LOG, "Removing LayerSurface that wasn't mapped.");
|
Debug::log(LOG, "Removing LayerSurface that wasn't mapped.");
|
||||||
alpha->setValueAndWarp(0.f);
|
if (alpha)
|
||||||
|
alpha->setValueAndWarp(0.f);
|
||||||
fadingOut = true;
|
fadingOut = true;
|
||||||
g_pCompositor->addToFadingOutSafe(self.lock());
|
g_pCompositor->addToFadingOutSafe(self.lock());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue