SVN_SILENT Fix crash in present windows.

BUG: 185239

svn path=/trunk/KDE/kdebase/workspace/; revision=930007
This commit is contained in:
Lucas Murray 2009-02-22 14:51:38 +00:00
parent c1d5937a66
commit be268c1f4c

View file

@ -276,10 +276,13 @@ void PresentWindowsEffect::windowClosed( EffectWindow *w )
} }
void PresentWindowsEffect::windowDeleted( EffectWindow *w ) void PresentWindowsEffect::windowDeleted( EffectWindow *w )
{
if( m_windowData.contains( w ))
{ {
delete m_windowData[w].textFrame; delete m_windowData[w].textFrame;
delete m_windowData[w].iconFrame; delete m_windowData[w].iconFrame;
m_windowData.remove( w ); m_windowData.remove( w );
}
m_motionManager.unmanage( w ); m_motionManager.unmanage( w );
} }