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
Родитель 9eef721690
Коммит 0a5e943de8
1 изменённых файлов: 0 добавлений и 7 удалений

Просмотреть файл

@ -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;