Bug 515338 - Make HTML5 parser internals not hold nsIContent or regular dynamic atoms. r=bnewman.

This commit is contained in:
Henri Sivonen
2009-09-21 14:43:43 +03:00
parent fc1b8bac73
commit 4384f2fdf0
31 changed files with 713 additions and 447 deletions

View File

@@ -581,7 +581,10 @@ nsHtml5StreamParser::ParseUntilSuspend()
return; // no more data for now but expecting more
case STREAM_ENDING:
mDone = PR_TRUE;
mExecutor->DidBuildModel(PR_FALSE);
{
nsRefPtr<nsHtml5StreamParser> kungFuDeathGrip(this);
mExecutor->DidBuildModel(PR_FALSE);
}
return; // no more data and not expecting more
default:
NS_NOTREACHED("It should be impossible to reach this.");