mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 699799 - Don't AddRef/Release every uncollectable document before cycle collection. r=jst.
--HG-- extra : rebase_source : 4436eaaded310ff4a3927e71843f7de664b50f9d
This commit is contained in:
parent
38efb60d36
commit
6305eec81a
@ -94,9 +94,7 @@ MarkContentViewer(nsIContentViewer* aViewer)
|
||||
return;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDOMDocument> domDoc;
|
||||
aViewer->GetDOMDocument(getter_AddRefs(domDoc));
|
||||
nsCOMPtr<nsIDocument> doc = do_QueryInterface(domDoc);
|
||||
nsIDocument *doc = aViewer->GetDocument();
|
||||
if (doc) {
|
||||
doc->MarkUncollectableForCCGeneration(nsCCUncollectableMarker::sGeneration);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user