Bug 860941 - Remove unnecessary argument cleanup in nsGlobalWindow::DetachFromDocShell. r=jst

This function proceeds to invoke CleanUp(), which also cleans this stuff up.
This commit is contained in:
Bobby Holley 2013-05-16 23:33:14 -07:00
parent 1423107658
commit 5162bde228

View File

@ -2738,13 +2738,6 @@ nsGlobalWindow::DetachFromDocShell()
mChromeEventHandler = nullptr; // force release now
if (mArguments) {
// We got no new document after someone called
// SetArguments(), drop our reference to the arguments.
mArguments = nullptr;
mArgumentsOrigin = nullptr;
}
if (mContext) {
mContext->GC(JS::gcreason::SET_DOC_SHELL);
mContext = nullptr;