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:
@@ -696,8 +696,8 @@ nsContentList::PopulateSelf()
|
||||
PopulateWith(mRootContent, PR_FALSE);
|
||||
}
|
||||
else if (mDocument) {
|
||||
nsIContent *root;
|
||||
root = mDocument->GetRootContent();
|
||||
nsIContent *root = nsnull;
|
||||
mDocument->GetRootContent(&root);
|
||||
if (root) {
|
||||
PopulateWith(root, PR_TRUE);
|
||||
NS_RELEASE(root);
|
||||
|
||||
Reference in New Issue
Block a user