Fix memory leak.
svn path=/trunk/KDE/kdebase/workspace/; revision=810522
This commit is contained in:
parent
41acbcfd5a
commit
6b391e1ed6
2 changed files with 6 additions and 0 deletions
|
@ -52,6 +52,11 @@ ShadowEffect::ShadowEffect()
|
|||
this, SLOT(updateShadowColor()));
|
||||
}
|
||||
|
||||
ShadowEffect::~ShadowEffect()
|
||||
{
|
||||
delete mShadowTexture;
|
||||
}
|
||||
|
||||
void ShadowEffect::updateShadowColor()
|
||||
{
|
||||
KConfigGroup conf = effects->effectConfig("Shadow");
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue