From: Christian Kamm Date: Wed, 11 Sep 2019 12:49:20 +0000 (+0200) Subject: Discovery: local job shouldn't be parented X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~181 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=71f71b38f10e4756234e94c91d68fc0134fb800d;p=nextcloud-desktop.git Discovery: local job shouldn't be parented Since it'll be deleted by the thread pool. --- 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++;