DecorationItem: Prevent crash
We are calling a QPointer without checking it first.
This commit is contained in:
parent
0eb56fff6e
commit
b44f33c7ed
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue