mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
fix mismatched deletes
This commit is contained in:
parent
21c66044ed
commit
ad2c7b2789
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user