Fix memory leak.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=851434
This commit is contained in:
parent
1aec75e5e6
commit
4e1a2de897
@ -73,6 +73,11 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
~AbstractRunnerPrivate()
|
||||
{
|
||||
delete package;
|
||||
}
|
||||
|
||||
bool hasRunOptions;
|
||||
bool hasConfig;
|
||||
AbstractRunner::Priority priority;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user