bug 53585 and bug 53569; fixing a leak; r/a=brendan; a=granrose

This commit is contained in:
erik%netscape.com 2000-09-21 21:46:47 +00:00
parent 632180ced0
commit 409e23e49f

View File

@ -1395,8 +1395,9 @@ CheckMap(nsFontCharSetMap* aEntry)
nsCOMPtr<nsIAtom> charset =
getter_AddRefs(NS_NewAtom(aEntry->mInfo->mCharSet));
if (charset) {
nsIUnicodeEncoder* converter = nsnull;
res = gCharSetManager->GetUnicodeEncoder(charset, &converter);
nsCOMPtr<nsIUnicodeEncoder> converter;
res = gCharSetManager->GetUnicodeEncoder(charset,
getter_AddRefs(converter));
if (NS_FAILED(res)) {
printf("=== %s failed (%s)\n", aEntry->mInfo->mCharSet, __FILE__);
}