Bug 523087 - Check for termination before every tree op in the HTML5 parser. r=bnewman.

This commit is contained in:
Henri Sivonen
2009-10-21 15:10:14 +03:00
parent 5c9324592e
commit 875857fc6b
3 changed files with 19 additions and 12 deletions

View File

@@ -415,9 +415,6 @@ nsHtml5Parser::Terminate(void)
nsCOMPtr<nsIParser> kungFuDeathGrip(this);
nsRefPtr<nsHtml5StreamParser> streamKungFuDeathGrip(mStreamParser);
nsRefPtr<nsHtml5TreeOpExecutor> treeOpKungFuDeathGrip(mExecutor);
// CancelParsingEvents must be called to avoid leaking the nsParser object
// @see bug 108049
CancelParsingEvents();
if (mStreamParser) {
mStreamParser->Terminate();
}