Commit 96f597d5 authored by Laurent Montel's avatar Laurent Montel 😁

Fix mem leak found by ASAN

parent 5794bcf6
Pipeline #25030 passed with stage
in 23 minutes and 42 seconds
......@@ -128,6 +128,9 @@ public:
mEnabled = groupEnabled.readEntry(mIdentifier, true);
}
}
~SimpleCompletionItem()
{
}
bool isEnabled() const override
{
......@@ -199,6 +202,10 @@ public:
{
setItem(item);
}
~CompletionViewItem()
{
delete mItem;
}
void setItem(CompletionItem *item)
{
......@@ -233,9 +240,6 @@ private:
CompletionOrderWidget::CompletionOrderWidget(QWidget *parent)
: QWidget(parent)
, mConfig(QStringLiteral("kpimcompletionorder"))
, mCollectionModel(nullptr)
, mLdapSearch(nullptr)
, mDirty(false)
{
new CompletionOrderEditorAdaptor(this);
QDBusConnection::sessionBus().registerObject(QStringLiteral("/"), this, QDBusConnection::ExportAdaptors);
......
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