From 6053c78a925319403bc95e44f433c0a7c92e21e1 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sat, 17 May 2014 21:26:40 -0400 Subject: [PATCH] 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. --- src/apps/debugger/controllers/TeamDebugger.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps/debugger/controllers/TeamDebugger.cpp b/src/apps/debugger/controllers/TeamDebugger.cpp index 3226afa4b8..5be1681dc2 100644 --- a/src/apps/debugger/controllers/TeamDebugger.cpp +++ b/src/apps/debugger/controllers/TeamDebugger.cpp @@ -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;