Bug 14291. Stop leaking entire XUL document when anonymous frames are
constructed. git-svn-id: svn://10.0.0.236/trunk@48289 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
eed6b981ff
commit
0301b999d5
@ -3191,8 +3191,8 @@ nsCSSFrameConstructor::CreateAnonymousFrames(nsIPresContext* aPresConte
|
||||
}
|
||||
|
||||
// get the document
|
||||
nsIDocument* doc = nsnull;
|
||||
nsresult rv = aParent->GetDocument(doc);
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
nsresult rv = aParent->GetDocument(*getter_AddRefs(doc));
|
||||
if (NS_FAILED(rv) || !doc)
|
||||
return rv;
|
||||
|
||||
|
||||
@ -3191,8 +3191,8 @@ nsCSSFrameConstructor::CreateAnonymousFrames(nsIPresContext* aPresConte
|
||||
}
|
||||
|
||||
// get the document
|
||||
nsIDocument* doc = nsnull;
|
||||
nsresult rv = aParent->GetDocument(doc);
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
nsresult rv = aParent->GetDocument(*getter_AddRefs(doc));
|
||||
if (NS_FAILED(rv) || !doc)
|
||||
return rv;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user