Bug 612568 - Drop nsIContent handles when finished parsing a fragment. r=Olli.Pettay, a=jst.

This commit is contained in:
Henri Sivonen
2010-11-18 10:19:59 +02:00
parent 661337f6a4
commit 46f71117ae
3 changed files with 10 additions and 0 deletions

View File

@@ -498,6 +498,7 @@ nsHtml5Parser::ParseHtml5Fragment(const nsAString& aSourceBuffer,
mTokenizer->end();
mExecutor->DropParserAndPerfHint();
mExecutor->DropHeldElements();
mTreeBuilder->DropHandles();
mAtomTable.Clear();
return NS_OK;
}