Kaydet (Commit) 637bbffa authored tarafından Katarina Behrens's avatar Katarina Behrens Kaydeden (comit) Thorsten Behrens

kde5: avoid crash with null surface

Change-Id: Ie63e62995bee0fd950cea0668f5ae06c903b25a3
üst 72c28fb1
......@@ -340,7 +340,8 @@ void KDE5SalFrame::ReleaseGraphics( SalGraphics *pGraphics )
if( m_aGraphics[i].pGraphics.get() == pGraphics )
{
m_aGraphics[i].bInUse = false;
cairo_surface_destroy( m_aGraphics[i].pSurface );
if ( m_aGraphics[i].pSurface != nullptr )
cairo_surface_destroy( m_aGraphics[i].pSurface );
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment