NS_IF_RELEASE(mParser); NS_IF_RELEASE(mCurrentForm); NS_IF_RELEASE(mCurrentMap); if (nsnull != mContentStack) {  PRInt32 indx = mContentStack->Count(); while (0 < indx--) { nsIContent* content = (nsIContent*)mContentStack->ElementAt(indx); NS_RELEASE(content); } delete mContentStack; } if (nsnull != mText) { PR_FREEIF(mText); } }
nsHTMLFragmentContentSink::~nsHTMLFragmentContentSink(){  // Should probably flush the text buffer here, just to make sure:  //FlushText();  NS_IF_RELEASE(mRoot);