Fix bad getters on nsIDocument and nsIScriptContext to use out params rather than return |AddRef|ed pointers. b=81289 r=jaggernaut sr=jst a=asa

git-svn-id: svn://10.0.0.236/trunk@97540 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%fas.harvard.edu
2001-06-20 03:27:48 +00:00
parent 66fdbe996f
commit 88810ef1eb
120 changed files with 655 additions and 495 deletions

View File

@@ -397,7 +397,7 @@ nsScriptLoader::ProcessScriptElement(nsIDOMHTMLScriptElement *aElement,
else {
request->mLoading = PR_FALSE;
request->mIsInline = PR_TRUE;
request->mURI = dont_AddRef(mDocument->GetDocumentURL());
mDocument->GetDocumentURL(getter_AddRefs(request->mURI));
nsCOMPtr<nsIScriptElement> scriptElement(do_QueryInterface(aElement));
if (scriptElement) {