Resolve TODO.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42066 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2011-06-09 01:59:21 +00:00
parent 5be4b532a8
commit 163f1c9ad6

View File

@ -51,9 +51,8 @@ GraphicalUserInterface::Terminate()
{
// quit window
if (fTeamWindow != NULL) {
// TODO: This is not clean. If the window has been deleted we shouldn't
// try to access it!
if (fTeamWindow->Lock())
BMessenger messenger(fTeamWindow);
if (messenger.IsValid() && messenger.LockTarget())
fTeamWindow->Quit();
}
}