diff --git a/mozilla/htmlparser/src/CNavDTD.cpp b/mozilla/htmlparser/src/CNavDTD.cpp index e4191281716..aac31b3c452 100644 --- a/mozilla/htmlparser/src/CNavDTD.cpp +++ b/mozilla/htmlparser/src/CNavDTD.cpp @@ -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); } diff --git a/mozilla/parser/htmlparser/src/CNavDTD.cpp b/mozilla/parser/htmlparser/src/CNavDTD.cpp index e4191281716..aac31b3c452 100644 --- a/mozilla/parser/htmlparser/src/CNavDTD.cpp +++ b/mozilla/parser/htmlparser/src/CNavDTD.cpp @@ -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); }