Fixed config memory leak.

This commit is contained in:
Albert Vaca 2015-03-21 22:21:34 -07:00
parent c66fe08382
commit e20c3c907d
2 changed files with 4 additions and 1 deletions

View file

@ -51,6 +51,9 @@ KdeConnectPluginConfig* KdeConnectPlugin::config() const
KdeConnectPlugin::~KdeConnectPlugin() KdeConnectPlugin::~KdeConnectPlugin()
{ {
if (d->mConfig) {
delete d->mConfig;
}
} }
const Device* KdeConnectPlugin::device() const Device* KdeConnectPlugin::device()

View file

@ -44,7 +44,7 @@ KdeConnectPluginKcm::KdeConnectPluginKcm(QWidget* parent, const QVariantList& ar
KdeConnectPluginKcm::~KdeConnectPluginKcm() KdeConnectPluginKcm::~KdeConnectPluginKcm()
{ {
delete d->mConfig;
} }
KdeConnectPluginConfig* KdeConnectPluginKcm::config() const KdeConnectPluginConfig* KdeConnectPluginKcm::config() const