50994 ( nebeta3+ ) - A recycled node was being referenced and therefore the crash.

r= nisheeth


git-svn-id: svn://10.0.0.236/trunk@78268 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
2000-09-06 20:27:40 +00:00
parent 0048670c4f
commit 3bf58abca0
2 changed files with 8 additions and 4 deletions

View File

@@ -340,13 +340,15 @@ public:
/**********************************************************
this gets called to close a tag in the sink and in the context
**********************************************************/
virtual nsresult CloseContainerInContext(nsIParserNode *aNode,eHTMLTags aTag,nsDTDContext *aContext,nsIHTMLContentSink *aSink) {
virtual nsresult CloseContainerInContext(nsIParserNode *aNode,eHTMLTags aTag,nsDTDContext *aContext,nsIHTMLContentSink *aSink) {
nsresult result=NS_OK;
if(mTag!=aTag) {
CElement *theElement=GetElement(aTag);
return theElement->CloseContainerInContext(aNode,aTag,aContext,aSink);
}
result=CloseContainer(aNode,aTag,aContext,aSink);
CloseContext(aNode,aTag,aContext,aSink);
return CloseContainer(aNode,aTag,aContext,aSink);
return result;
}