leak removal; r=harishd

git-svn-id: svn://10.0.0.236/trunk@64144 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
2000-03-26 04:45:45 +00:00
parent 4b378b8424
commit f4565bc7e0
6 changed files with 28 additions and 8 deletions

View File

@@ -86,6 +86,13 @@ nsCParserNode::~nsCParserNode() {
if(mRecycler) {
RecycleTokens(mRecycler,*mAttributes);
}
else {
CToken* theToken=(CToken*)mAttributes->Pop();
while(theToken){
delete theToken;
theToken=(CToken*)mAttributes->Pop();
}
}
delete mAttributes;
mAttributes=0;
@@ -343,3 +350,5 @@ CToken* nsCParserNode::PopAttributeToken() {
}
return result;
}