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:
bzbarsky%mit.edu
2007-10-10 02:10:01 +00:00
parent 4ac99f461f
commit 154c45dfa1
4 changed files with 14 additions and 10 deletions

View File

@@ -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);