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

r= nisheeth
This commit is contained in:
harishd%netscape.com 2000-09-06 20:27:40 +00:00
Родитель c3745626ff
Коммит e06c12833e
2 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -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;
}

Просмотреть файл

@ -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;
}