bug 283564: Fix a leak when the HTML fragment sink is used to parse an empty string by ensuring that DidBuildModel() is always called. r+sr=bzbarsky

git-svn-id: svn://10.0.0.236/trunk@169884 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mrbkap%gmail.com
2005-02-26 04:33:04 +00:00
parent f825e0154b
commit 8fe15ff614
2 changed files with 7 additions and 0 deletions

View File

@@ -707,6 +707,7 @@ nsHTMLFragmentContentSink::DidBuildContent()
{
if (!mAllContent) {
FlushText();
DidBuildModel(); // Release our ref to the parser now.
mProcessing = PR_FALSE;
}