Fix mem leak

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=806631
This commit is contained in:
Laurent Montel 2008-05-11 21:30:28 +00:00
parent d03f49e72f
commit c4ff00eb0f
2 changed files with 6 additions and 0 deletions

View File

@ -106,6 +106,11 @@ DesktopToolbox::DesktopToolbox(QGraphicsItem *parent)
setFlag(ItemIgnoresTransformations, true);
}
DesktopToolbox::~DesktopToolbox()
{
delete d;
}
QRectF DesktopToolbox::boundingRect() const
{
return QRectF(0, 0, -size()*2, size()*2);

View File

@ -43,6 +43,7 @@ class DesktopToolbox : public Toolbox
public:
explicit DesktopToolbox(QGraphicsItem *parent = 0);
~DesktopToolbox();
QRectF boundingRect() const;
QPainterPath shape() const;