Debugger: Fix #10764.

- Destroy the background worker before going after all the managers. Otherwise,
there might potentially still be jobs in flight that might touch them, leading
to crashes.
This commit is contained in:
Rene Gollent
2014-05-17 21:26:40 -04:00
parent 25890b8f2a
commit 6053c78a92
@@ -1,6 +1,6 @@
/*
* Copyright 2009-2012, Ingo Weinhold, [email protected].
* Copyright 2010-2013, Rene Gollent, [email protected].
* Copyright 2010-2014, Rene Gollent, [email protected].
* Distributed under the terms of the MIT License.
*/
@@ -290,12 +290,13 @@ TeamDebugger::~TeamDebugger()
fReportGenerator->Quit();
}
delete fWorker;
delete fImageInfoPendingThreads;
delete fBreakpointManager;
delete fWatchpointManager;
delete fMemoryBlockManager;
delete fWorker;
delete fTeam;
delete fFileManager;