* BWindow deletes its view hirachry

* BViews set fOwner to NULL recursively when detached
* updated a comment


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15851 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2006-01-06 17:14:58 +00:00
parent 23ae1e249f
commit fb82d189d0
2 changed files with 40 additions and 38 deletions
+3 -3
View File
@@ -318,6 +318,9 @@ BWindow::~BWindow()
delete (Shortcut *)fShortcuts.ItemAt(index);
}
fTopView->RemoveSelf();
delete fTopView;
// TODO: release other dynamically-allocated objects
// Deleting this semaphore will tell open menus to quit.
@@ -416,9 +419,6 @@ BWindow::Quit()
Hide();
}
// ... also its children
//detachTopView();
if (fFlags & B_QUIT_ON_WINDOW_CLOSE)
be_app->PostMessage(B_QUIT_REQUESTED);