From 52afddcaeb0ba1a0d1489556adc32c378fe512dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 13 Mar 2007 09:49:44 +0000 Subject: [PATCH] Don't unref a deleted window more than once. svn path=/branches/work/kwin_composite/; revision=642067 --- effects/fade.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/effects/fade.cpp b/effects/fade.cpp index 81cf302b08..3aefb98681 100644 --- a/effects/fade.cpp +++ b/effects/fade.cpp @@ -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 {