Fixed config memory leak.
This commit is contained in:
parent
c66fe08382
commit
e20c3c907d
2 changed files with 4 additions and 1 deletions
|
@ -51,6 +51,9 @@ KdeConnectPluginConfig* KdeConnectPlugin::config() const
|
|||
|
||||
KdeConnectPlugin::~KdeConnectPlugin()
|
||||
{
|
||||
if (d->mConfig) {
|
||||
delete d->mConfig;
|
||||
}
|
||||
}
|
||||
|
||||
const Device* KdeConnectPlugin::device()
|
||||
|
|
|
@ -44,7 +44,7 @@ KdeConnectPluginKcm::KdeConnectPluginKcm(QWidget* parent, const QVariantList& ar
|
|||
|
||||
KdeConnectPluginKcm::~KdeConnectPluginKcm()
|
||||
{
|
||||
|
||||
delete d->mConfig;
|
||||
}
|
||||
|
||||
KdeConnectPluginConfig* KdeConnectPluginKcm::config() const
|
||||
|
|
Loading…
Reference in a new issue