Commit ca18647b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove created menu. Found by ASAN

parent 081cabc8
Pipeline #24984 passed with stage
in 13 minutes and 39 seconds
......@@ -33,7 +33,6 @@ RecentCollectionAction::RecentCollectionAction(Akonadi::StandardActionManager::T
: QObject(menu)
, mMenu(menu)
, mModel(model)
, mRecentAction(nullptr)
{
mAkonadiConfig = KSharedConfig::openConfig(QStringLiteral("akonadikderc"));
KConfigGroup group(mAkonadiConfig, QStringLiteral("Recent Collections"));
......@@ -46,6 +45,7 @@ RecentCollectionAction::RecentCollectionAction(Akonadi::StandardActionManager::T
RecentCollectionAction::~RecentCollectionAction()
{
delete mRecentAction->menu();
}
bool RecentCollectionAction::clear()
......
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