diff --git a/effects/shadow.cpp b/effects/shadow.cpp index 202f4f3a9b..923a8c2519 100644 --- a/effects/shadow.cpp +++ b/effects/shadow.cpp @@ -52,6 +52,11 @@ ShadowEffect::ShadowEffect() this, SLOT(updateShadowColor())); } +ShadowEffect::~ShadowEffect() + { + delete mShadowTexture; + } + void ShadowEffect::updateShadowColor() { KConfigGroup conf = effects->effectConfig("Shadow"); diff --git a/effects/shadow.h b/effects/shadow.h index 2789353744..32269a4b9d 100644 --- a/effects/shadow.h +++ b/effects/shadow.h @@ -35,6 +35,7 @@ class ShadowEffect Q_OBJECT public: ShadowEffect(); + virtual ~ShadowEffect(); virtual void prePaintWindow( EffectWindow* w, WindowPrePaintData& data, int time ); virtual void drawWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data ); virtual void paintScreen( int mask, QRegion region, ScreenPaintData& data );