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

View File

@ -1,6 +1,6 @@
/*
* Copyright 2009-2012, Ingo Weinhold, ingo_weinhold@gmx.de.
* Copyright 2010-2013, Rene Gollent, rene@gollent.com.
* Copyright 2010-2014, Rene Gollent, rene@gollent.com.
* 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;