leak removal; r=harishd
git-svn-id: svn://10.0.0.236/trunk@64144 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user