Commit 1f7a4a52 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix mem leak

parent df05311d
Pipeline #201402 failed with stage
in 9 minutes and 40 seconds
......@@ -43,6 +43,7 @@ void ClearCacheJob::start()
if (!query.exec(ridCount)) {
qCWarning(AKONADIWIDGETS_LOG) << "Failed to execute query" << ridCount << ":" << query.lastError().text();
KMessageBox::error(mParentWidget, query.lastError().text());
deleteLater();
return;
}
......@@ -58,6 +59,7 @@ void ClearCacheJob::start()
QString::number(emptyRidCount)),
QStringLiteral("POSSIBLE DATA LOSS!"))
== KMessageBox::Cancel) {
deleteLater();
return;
}
}
......@@ -80,6 +82,7 @@ void ClearCacheJob::start()
KMessageBox::information(mParentWidget, i18n("Collection cache cleared. You should restart Akonadi now."));
Q_EMIT clearCacheDone();
deleteLater();
}
bool ClearCacheJob::canStart() const
......
Supports Markdown
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