Fix mem leak

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805683
This commit is contained in:
Laurent Montel 2008-05-09 07:04:36 +00:00
parent 30b6b8d188
commit 09fb90b051
5 changed files with 13 additions and 0 deletions

View File

@ -104,6 +104,11 @@ PanelToolbox::PanelToolbox(QGraphicsItem *parent)
setFlag(ItemIgnoresTransformations, true);
}
PanelToolbox::~PanelToolbox()
{
delete d;
}
QRectF PanelToolbox::boundingRect() const
{
if (orientation() == Qt::Vertical) {

View File

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

View File

@ -312,6 +312,7 @@ RunnerManager::RunnerManager(KConfigGroup& config, QObject *parent)
RunnerManager::~RunnerManager()
{
delete d;
}
AbstractRunner* RunnerManager::runner(const QString &name) const

View File

@ -61,6 +61,11 @@ Toolbox::Toolbox(QGraphicsItem *parent)
setAcceptsHoverEvents(true);
}
Toolbox::~Toolbox()
{
delete d;
}
void Toolbox::addTool(QGraphicsItem *tool, const QString &name)
{
if (!tool) {

View File

@ -38,6 +38,7 @@ class Toolbox : public QObject, public QGraphicsItem
public:
explicit Toolbox(QGraphicsItem *parent = 0);
~Toolbox();
void addTool(QGraphicsItem *tool, const QString &name);
void enableTool(const QString &tool, bool enabled);