diff --git a/src/base/bittorrent/sessionimpl.cpp b/src/base/bittorrent/sessionimpl.cpp index abdb1e03c..fc89f85f8 100644 --- a/src/base/bittorrent/sessionimpl.cpp +++ b/src/base/bittorrent/sessionimpl.cpp @@ -1387,7 +1387,7 @@ void SessionImpl::endStartup(ResumeSessionContext *context) saveTorrentsQueue(); const Path dbPath = context->startupStorage->path(); - delete context->startupStorage; + context->startupStorage->deleteLater(); if (context->currentStorageType == ResumeDataStorageType::Legacy) Utils::Fs::removeFile(dbPath);