From 6f3aaecb783c5d8b9dc82cb9752ec4d0372a3b9c Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Fri, 17 Jun 2016 19:04:24 +0200 Subject: [PATCH] Fix a crash on if shutting down during propagation The SyncRunFileLog owned by the Folder must be destroyed after the SyncEngine since the SyncEngine will abort during destruction, resulting in all jobs being aborted. It's possible that this crash only happens with a debug build. --- src/gui/folder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index 0a88c68c9..ac50c7f06 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -121,6 +121,8 @@ Folder::Folder(const FolderDefinition& definition, Folder::~Folder() { + // Reset then engine first as it will abort and try to access members of the Folder + _engine.reset(); } void Folder::checkLocalPath() -- 2.30.2