Fix memory leak.

svn path=/trunk/KDE/kdebase/workspace/; revision=810522
This commit is contained in:
Cédric Borgese 2008-05-20 22:04:12 +00:00
parent 41acbcfd5a
commit 6b391e1ed6
2 changed files with 6 additions and 0 deletions

View file

@ -52,6 +52,11 @@ ShadowEffect::ShadowEffect()
this, SLOT(updateShadowColor())); this, SLOT(updateShadowColor()));
} }
ShadowEffect::~ShadowEffect()
{
delete mShadowTexture;
}
void ShadowEffect::updateShadowColor() void ShadowEffect::updateShadowColor()
{ {
KConfigGroup conf = effects->effectConfig("Shadow"); KConfigGroup conf = effects->effectConfig("Shadow");

View file

@ -35,6 +35,7 @@ class ShadowEffect
Q_OBJECT Q_OBJECT
public: public:
ShadowEffect(); ShadowEffect();
virtual ~ShadowEffect();
virtual void prePaintWindow( EffectWindow* w, WindowPrePaintData& data, int time ); virtual void prePaintWindow( EffectWindow* w, WindowPrePaintData& data, int time );
virtual void drawWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data ); virtual void drawWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data );
virtual void paintScreen( int mask, QRegion region, ScreenPaintData& data ); virtual void paintScreen( int mask, QRegion region, ScreenPaintData& data );