Commit e20c3c90 authored by Albert Vaca Cintora's avatar Albert Vaca Cintora

Fixed config memory leak.

parent c66fe083
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment