From 41acbcfd5a2c6ce8f900582d609b3b4dbdbea095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Borgese?= Date: Tue, 20 May 2008 22:02:11 +0000 Subject: [PATCH] Fix memory leak. svn path=/trunk/KDE/kdebase/workspace/; revision=810521 --- effects/coverswitch.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/effects/coverswitch.cpp b/effects/coverswitch.cpp index 1072e766a4..7cbcd993b9 100644 --- a/effects/coverswitch.cpp +++ b/effects/coverswitch.cpp @@ -311,6 +311,7 @@ void CoverSwitchEffect::paintScreen( int mask, QRegion region, ScreenPaintData& frameRect.height()*0.8f ); icon->render( region, iconRect); icon->unbind(); + delete icon; glDisable( GL_BLEND ); glPopAttrib(); }