From 71f71b38f10e4756234e94c91d68fc0134fb800d Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Wed, 11 Sep 2019 14:49:20 +0200 Subject: [PATCH] Discovery: local job shouldn't be parented Since it'll be deleted by the thread pool. --- src/libsync/discovery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 4f162e18f..3406fdf48 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -1433,7 +1433,7 @@ DiscoverySingleDirectoryJob *ProcessDirectoryJob::startAsyncServerQuery() void ProcessDirectoryJob::startAsyncLocalQuery() { QString localPath = _discoveryData->_localDir + _currentFolder._local; - auto localJob = new DiscoverySingleLocalDirectoryJob(_discoveryData->_account, localPath, _discoveryData->_syncOptions._vfs.data(), this); + auto localJob = new DiscoverySingleLocalDirectoryJob(_discoveryData->_account, localPath, _discoveryData->_syncOptions._vfs.data()); _discoveryData->_currentlyActiveJobs++; _pendingAsyncJobs++; -- 2.30.2