Fix for missing add/release ref pair in the GetScriptGlobalObject call

This commit is contained in:
joki%netscape.com 1998-07-25 01:53:15 +00:00
parent 197977c061
commit 98a6e7f5d1
2 changed files with 2 additions and 0 deletions

View File

@ -875,6 +875,7 @@ nsresult nsDocument::HandleDOMEvent(nsIPresContext& aPresContext,
nsIScriptGlobalObject* mGlobal;
if (NS_OK == mScriptContextOwner->GetScriptGlobalObject(&mGlobal)) {
mGlobal->HandleDOMEvent(aPresContext, aEvent, aDOMEvent, DOM_EVENT_BUBBLE, aEventStatus);
NS_RELEASE(mGlobal);
}
}

View File

@ -875,6 +875,7 @@ nsresult nsDocument::HandleDOMEvent(nsIPresContext& aPresContext,
nsIScriptGlobalObject* mGlobal;
if (NS_OK == mScriptContextOwner->GetScriptGlobalObject(&mGlobal)) {
mGlobal->HandleDOMEvent(aPresContext, aEvent, aDOMEvent, DOM_EVENT_BUBBLE, aEventStatus);
NS_RELEASE(mGlobal);
}
}