Fix memory leak.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=851434
This commit is contained in:
Alex Merry 2008-08-23 16:37:04 +00:00
parent 1aec75e5e6
commit 4e1a2de897
2 changed files with 8 additions and 0 deletions

View File

@ -73,6 +73,11 @@ public:
}
}
~AbstractRunnerPrivate()
{
delete package;
}
bool hasRunOptions;
bool hasConfig;
AbstractRunner::Priority priority;

View File

@ -165,6 +165,9 @@ class PLASMA_EXPORT AbstractRunner : public QObject
/**
* Accessor for the associated Package object if any.
*
* Note that the returned pointer is only valid for the lifetime of
* the runner.
*
* @return the Package object, or 0 if none
**/
const Package* package() const;