diff --git a/changelog/unreleased/7760 b/changelog/unreleased/7760 new file mode 100644 index 00000000000..6f50007518b --- /dev/null +++ b/changelog/unreleased/7760 @@ -0,0 +1,4 @@ +Bugfix: Fixed a potential crash on cancelation of discovery jobs + + +https://github.com/owncloud/client/pull/7760 diff --git a/src/libsync/discoveryphase.h b/src/libsync/discoveryphase.h index 14dfdc6a357..52c6596be08 100644 --- a/src/libsync/discoveryphase.h +++ b/src/libsync/discoveryphase.h @@ -158,7 +158,7 @@ class DiscoveryPhase : public QObject friend class ProcessDirectoryJob; - ProcessDirectoryJob *_currentRootJob = nullptr; + QPointer _currentRootJob; /** Maps the db-path of a deleted item to its SyncFileItem. *