mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Add another missing null check.
This commit is contained in:
parent
4a598eb12b
commit
64f01ec858
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user