Fix for 29048, 28085 - MLKs..

r=nisheeth


git-svn-id: svn://10.0.0.236/trunk@64806 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
2000-04-01 00:05:44 +00:00
parent a66b5d430f
commit 477c951a51
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);
}