Don't unref a deleted window more than once.

svn path=/branches/work/kwin_composite/; revision=642067
This commit is contained in:
Luboš Luňák 2007-03-13 09:49:44 +00:00
parent 13962741e8
commit 52afddcaeb

View file

@ -42,7 +42,10 @@ void FadeEffect::prePaintWindow( EffectWindow* w, int* mask, QRegion* region, in
if( !windows[ w ].isFading())
{
if( windows[ w ].deleted )
{
static_cast< Deleted* >( w->window())->unrefWindow();
windows.remove( w );
}
}
else
{