Fix for 29048, 28085 - MLKs..

r=nisheeth
This commit is contained in:
harishd%netscape.com 2000-04-01 00:05:44 +00:00
parent 005bd8588b
commit d355779849
2 changed files with 4 additions and 0 deletions

View File

@ -3197,6 +3197,8 @@ nsresult CNavDTD::CloseContainersTo(PRInt32 anIndex,eHTMLTags aTarget, PRBool aC
if(theChildStyleStack) {
if(theStyleDoesntLeakOut) {
RecycleNodes(theChildStyleStack);
delete theChildStyleStack; // XXX try to recycle this...
theChildStyleStack=0;
}
else mBodyContext->PushStyles(theChildStyleStack);
}

View File

@ -3197,6 +3197,8 @@ nsresult CNavDTD::CloseContainersTo(PRInt32 anIndex,eHTMLTags aTarget, PRBool aC
if(theChildStyleStack) {
if(theStyleDoesntLeakOut) {
RecycleNodes(theChildStyleStack);
delete theChildStyleStack; // XXX try to recycle this...
theChildStyleStack=0;
}
else mBodyContext->PushStyles(theChildStyleStack);
}