1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 04:54:18 +00:00

Correctly destroy startup resume data storage

PR #17930.
This commit is contained in:
Vladimir Golovnev 2022-10-25 11:37:51 +03:00 committed by GitHub
parent 14e4bc7eea
commit bb2caabd61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);