Skip to content

Commit

Permalink
Fix crash in TeamDebugger.
Browse files Browse the repository at this point in the history
- TeamDebugger's destructor was assuming the report generator object
  had always been created, which might not be the case. Fixes second
  part of #9273.
  • Loading branch information
anevilyak committed Dec 7, 2012
1 parent 093b89b commit e206ff5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/apps/debugger/controllers/TeamDebugger.cpp
Expand Up @@ -277,13 +277,17 @@ TeamDebugger::~TeamDebugger()
thread = next;
}
}

if (fReportGenerator != NULL) {
fReportGenerator->Lock();
fReportGenerator->Quit();
}

delete fImageInfoPendingThreads;

delete fBreakpointManager;
delete fWatchpointManager;
delete fMemoryBlockManager;
fReportGenerator->Lock();
fReportGenerator->Quit();
delete fWorker;
delete fTeam;
delete fFileManager;
Expand Down

0 comments on commit e206ff5

Please sign in to comment.