Skip to content

Commit

Permalink
Fix potential null pointer access
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Feb 24, 2020
1 parent 9b6ebe8 commit 68c6d85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog/unreleased/7760
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Bugfix: Fixed a potential crash on cancelation of discovery jobs


https://github.com/owncloud/client/pull/7760
2 changes: 1 addition & 1 deletion src/libsync/discoveryphase.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class DiscoveryPhase : public QObject

friend class ProcessDirectoryJob;

ProcessDirectoryJob *_currentRootJob = nullptr;
QPointer<ProcessDirectoryJob> _currentRootJob;

/** Maps the db-path of a deleted item to its SyncFileItem.
*
Expand Down

0 comments on commit 68c6d85

Please sign in to comment.