Correctly unset the objects we know. We don't only need to release the

references to them, but also unregister as listener.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31225 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-06-24 12:36:14 +00:00
parent 9a6d65aaed
commit ed832ef623
@@ -74,14 +74,10 @@ TeamWindow::~TeamWindow()
fDebugModel->GetTeam()->RemoveListener(this); fDebugModel->GetTeam()->RemoveListener(this);
fDebugModel->RemoveListener(this); fDebugModel->RemoveListener(this);
if (fActiveSourceCode != NULL) _SetActiveSourceCode(NULL);
fActiveSourceCode->RemoveReference(); _SetActiveStackFrame(NULL);
if (fActiveStackFrame != NULL) _SetActiveStackTrace(NULL);
fActiveStackFrame->RemoveReference(); _SetActiveThread(NULL);
if (fActiveStackTrace != NULL)
fActiveStackTrace->RemoveReference();
if (fActiveThread != NULL)
fActiveThread->RemoveReference();
} }