Commit 081cabc8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix mem leak found by ASAN. We never deleted qmimedate here

parent 3664d35b
......@@ -1242,6 +1242,7 @@ public:
QAbstractItemModel *model = const_cast<QAbstractItemModel *>(index.model());
model->dropMimeData(mimeData, dropAction, -1, -1, index);
delete mimeData;
}
delete dlg;
}
......@@ -1264,6 +1265,7 @@ public:
const Collection collection = index.data(EntityTreeModel::CollectionRole).value<Collection>();
addRecentCollection(collection.id());
model->dropMimeData(mimeData, dropAction, -1, -1, index);
delete mimeData;
}
void addRecentCollection(Akonadi::Collection::Id id) 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