* 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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user