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:
parent
9a6d65aaed
commit
ed832ef623
@ -74,14 +74,10 @@ TeamWindow::~TeamWindow()
|
||||
fDebugModel->GetTeam()->RemoveListener(this);
|
||||
fDebugModel->RemoveListener(this);
|
||||
|
||||
if (fActiveSourceCode != NULL)
|
||||
fActiveSourceCode->RemoveReference();
|
||||
if (fActiveStackFrame != NULL)
|
||||
fActiveStackFrame->RemoveReference();
|
||||
if (fActiveStackTrace != NULL)
|
||||
fActiveStackTrace->RemoveReference();
|
||||
if (fActiveThread != NULL)
|
||||
fActiveThread->RemoveReference();
|
||||
_SetActiveSourceCode(NULL);
|
||||
_SetActiveStackFrame(NULL);
|
||||
_SetActiveStackTrace(NULL);
|
||||
_SetActiveThread(NULL);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user