Added NS_RELEASE in FlushText() of interface returned from QueryInterface()

git-svn-id: svn://10.0.0.236/trunk@7784 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1998-08-11 22:44:28 +00:00
parent f1bb7fc419
commit abd69964ac
2 changed files with 2 additions and 0 deletions

View File

@@ -1501,6 +1501,7 @@ HTMLContentSink::FlushText()
nsIContent* content = nsnull;
mCurrentText->QueryInterface(kIContentIID, (void**) &content);
content->SetDocument(mDocument);
NS_RELEASE(content);
NS_RELEASE(mCurrentText);
return PR_TRUE;
}