From 6b391e1ed6cdb6a9c48a2b4e37ab54493a546a96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Borgese?= Date: Tue, 20 May 2008 22:04:12 +0000 Subject: [PATCH] Fix memory leak. svn path=/trunk/KDE/kdebase/workspace/; revision=810522 --- effects/shadow.cpp | 5 +++++ effects/shadow.h | 1 + 2 files changed, 6 insertions(+) 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 );