chore: disable the NewDeleteLeaks clang analyzer check

This seems to provide a false positives with the QTimer::singleShot,
this would fix the CI.
master
Bhushan Shah 2021-01-21 12:29:21 +05:30
parent ad4308793b
commit 12375e997a
1 changed files with 1 additions and 0 deletions

View File

@ -790,6 +790,7 @@ namespace accounts
if (job) {
Q_ASSERT_X(job == m_current, Q_FUNC_INFO, "sender() should match 'current' job!");
QObject::disconnect(this, &Dispatcher::dispatch, job, &AccountJob::run);
// NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks): False positives with QTimer::singleShot
QTimer::singleShot(0, job, &AccountJob::deleteLater);
m_current = nullptr;
dispatchNext();