Don't leak strings from <keygen>. Bug 398665, r=kaie, sr=jst, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@237501 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1140,7 +1140,7 @@ CNavDTD::HandleKeyGen(nsIParserNode* aNode)
|
||||
|
||||
if (NS_SUCCEEDED(result)) {
|
||||
PRInt32 theAttrCount = aNode->GetAttributeCount();
|
||||
nsVoidArray theContent;
|
||||
nsStringArray theContent;
|
||||
nsAutoString theAttribute;
|
||||
nsAutoString theFormType;
|
||||
CToken* theToken = nsnull;
|
||||
@@ -1163,7 +1163,7 @@ CNavDTD::HandleKeyGen(nsIParserNode* aNode)
|
||||
mTokenizer->PushTokenFront(theToken);
|
||||
|
||||
for (theIndex = theContent.Count()-1; theIndex > -1; --theIndex) {
|
||||
theTextValue = (nsString*)theContent[theIndex];
|
||||
theTextValue = theContent[theIndex];
|
||||
theToken = mTokenAllocator->CreateTokenOfType(eToken_text,
|
||||
eHTMLTag_text,
|
||||
*theTextValue);
|
||||
|
||||
Reference in New Issue
Block a user