Fix mem leak similar to 13641
git-svn-id: svn://10.0.0.236/trunk@47177 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1736,11 +1736,12 @@ void nsXIFDTD::ProcessDocumentInfoTag(const nsIParserNode& aNode)
|
||||
{
|
||||
nsString tmpString("XIF_DOC_INFO");
|
||||
PushNodeAndToken(tmpString);
|
||||
CAttributeToken* attribute = new CAttributeToken(key,value);
|
||||
nsIParserNode* top = PeekNode();
|
||||
if (top != nsnull)
|
||||
{
|
||||
CAttributeToken* attribute = new CAttributeToken(key,value);
|
||||
((nsCParserNode*)top)->AddAttribute(attribute);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user