Fix mem leak
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=806631
This commit is contained in:
parent
d03f49e72f
commit
c4ff00eb0f
@ -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);
|
||||
|
@ -43,6 +43,7 @@ class DesktopToolbox : public Toolbox
|
||||
|
||||
public:
|
||||
explicit DesktopToolbox(QGraphicsItem *parent = 0);
|
||||
~DesktopToolbox();
|
||||
QRectF boundingRect() const;
|
||||
QPainterPath shape() const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user