fix mismatched deletes

This commit is contained in:
bienvenu%netscape.com 1999-09-26 19:53:50 +00:00
parent 21c66044ed
commit ad2c7b2789
2 changed files with 2 additions and 2 deletions

View File

@ -287,7 +287,7 @@ NS_IMETHODIMP nsAbDirectory::AddChildCards(const char *uriName, nsIAbCard **chil
return rv;
}
}
delete[] uriStr;
nsAllocator::Free(uriStr);
*childCard = personCard;
NS_ADDREF(*childCard);

View File

@ -2154,7 +2154,7 @@ nsresult nsAddrDatabase::GetCardFromDB(nsIAbCard *newCard, nsIMdbRow* cardRow)
tempCString = tempString.ToNewCString();
INTL_ConvertToUnicode((const char *)tempCString, nsCRT::strlen(tempCString), (void**)&unicodeStr, &unicharLength);
newCard->SetDisplayName(unicodeStr);
delete [] tempCString;
nsAllocator::Free(tempCString);
PR_Free(unicodeStr);
}