Add another missing null check.

This commit is contained in:
Blake Kaplan 2010-06-29 14:35:23 -07:00
parent 4a598eb12b
commit 64f01ec858

View File

@ -8077,7 +8077,10 @@ void
nsGlobalWindow::ClearWindowScope(nsISupports *aWindow)
{
nsCOMPtr<nsIScriptGlobalObject> sgo(do_QueryInterface(aWindow));
sgo->GetContext()->ClearScope(sgo->GetGlobalJSObject(), PR_TRUE);
nsIScriptContext *scx = sgo->GetContext();
if (scx) {
scx->ClearScope(sgo->GetGlobalJSObject(), PR_TRUE);
}
}
//*****************************************************************************