mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Fixup deletion order to delete children before the parent when closing a window
This commit is contained in:
parent
088dde4ed7
commit
c1c5634399
@ -1542,18 +1542,18 @@ nsBrowserWindow::Close()
|
||||
NS_RELEASE(mWebShell);
|
||||
}
|
||||
|
||||
// NS_IF_RELEASE(mWindow);
|
||||
if (nsnull != mWindow) {
|
||||
nsIWidget* w = mWindow;
|
||||
NS_RELEASE(w);
|
||||
}
|
||||
|
||||
NS_IF_RELEASE(mBack);
|
||||
NS_IF_RELEASE(mForward);
|
||||
NS_IF_RELEASE(mLocation);
|
||||
NS_IF_RELEASE(mThrobber);
|
||||
NS_IF_RELEASE(mStatus);
|
||||
|
||||
// NS_IF_RELEASE(mWindow);
|
||||
if (nsnull != mWindow) {
|
||||
nsIWidget* w = mWindow;
|
||||
NS_RELEASE(w);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user