Discovery: local job shouldn't be parented

Since it'll be deleted by the thread pool.
This commit is contained in:
Christian Kamm 2019-09-11 14:49:20 +02:00 committed by Kevin Ottens
parent 53a217d4e4
commit 71f71b38f1
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

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