зеркало из https://github.com/mozilla/pjs.git
Fixup deletion order to delete children before the parent when closing a window
This commit is contained in:
Родитель
2f67a95ece
Коммит
1d97296ba3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче