mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Fix potential crash in Composite job destruction
Sentry: https://sentry.io/owncloud/desktop-win-and-mac/issues/427476987/
This commit is contained in:
parent
e389fcaecb
commit
883deb1c5d
@ -210,8 +210,9 @@ public:
|
||||
|
||||
virtual ~PropagatorCompositeJob()
|
||||
{
|
||||
qDeleteAll(_jobsToDo);
|
||||
qDeleteAll(_runningJobs);
|
||||
// Don't delete jobs in _jobsToDo and _runningJobs: they have parents
|
||||
// that will be responsible for cleanup. Deleting them here would risk
|
||||
// deleting something that has already been deleted by a shared parent.
|
||||
}
|
||||
|
||||
void appendJob(PropagatorJob *job)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user