Merge pull request #4584 from lultimouomo/fix-destruction-order

Fix crash due to destruction order
This commit is contained in:
Jocelyn Turcotte 2016-03-18 18:58:23 +01:00
commit c55ac504a3

View file

@ -99,6 +99,7 @@ SyncEngine::SyncEngine(AccountPtr account, const QString& localPath,
SyncEngine::~SyncEngine() SyncEngine::~SyncEngine()
{ {
_excludedFiles.reset();
csync_destroy(_csync_ctx); csync_destroy(_csync_ctx);
_thread.quit(); _thread.quit();
_thread.wait(); _thread.wait();