Fix memory leak.

svn path=/trunk/KDE/kdebase/workspace/; revision=810521
This commit is contained in:
Cédric Borgese 2008-05-20 22:02:11 +00:00
parent daecb8f0fa
commit 41acbcfd5a

View file

@ -311,6 +311,7 @@ void CoverSwitchEffect::paintScreen( int mask, QRegion region, ScreenPaintData&
frameRect.height()*0.8f ); frameRect.height()*0.8f );
icon->render( region, iconRect); icon->render( region, iconRect);
icon->unbind(); icon->unbind();
delete icon;
glDisable( GL_BLEND ); glDisable( GL_BLEND );
glPopAttrib(); glPopAttrib();
} }