DecorationItem: Prevent crash

We are calling a QPointer without checking it first.
master
Aleix Pol 3 years ago committed by Aleix Pol Gonzalez
parent 0eb56fff6e
commit b44f33c7ed

@ -45,7 +45,9 @@ Decoration::DecoratedClientImpl *DecorationRenderer::client() const
void DecorationRenderer::invalidate()
{
addDamage(m_client->client()->rect());
if (m_client) {
addDamage(m_client->client()->rect());
}
m_imageSizesDirty = true;
}

Loading…
Cancel
Save