fix potential leak from checkin for bug 48351. r=harishd, a=syd

This commit is contained in:
rickg%netscape.com 2000-09-21 04:00:34 +00:00
parent f5aeab65b2
commit dbbec45fb5
2 changed files with 2 additions and 0 deletions

View File

@ -898,6 +898,7 @@ nsresult CNavDTD::DidHandleStartTag(nsCParserNode& aNode,eHTMLTags aChildTag){
CToken *theEndToken=mTokenAllocator->CreateTokenOfType(eToken_end,aChildTag); CToken *theEndToken=mTokenAllocator->CreateTokenOfType(eToken_end,aChildTag);
if(theEndToken) { if(theEndToken) {
result=HandleEndToken(theEndToken); result=HandleEndToken(theEndToken);
IF_FREE(theEndToken);
} }
} }
} }

View File

@ -898,6 +898,7 @@ nsresult CNavDTD::DidHandleStartTag(nsCParserNode& aNode,eHTMLTags aChildTag){
CToken *theEndToken=mTokenAllocator->CreateTokenOfType(eToken_end,aChildTag); CToken *theEndToken=mTokenAllocator->CreateTokenOfType(eToken_end,aChildTag);
if(theEndToken) { if(theEndToken) {
result=HandleEndToken(theEndToken); result=HandleEndToken(theEndToken);
IF_FREE(theEndToken);
} }
} }
} }