if (NS_FAILED(res)) {
if (NS_FAILED(res))
EnumFonts(nsIAtom* aLangGroup, const char* aGeneric, PRUint32* aCount,  PRUnichar*** aResult){  nsresult res = GetAllFontNames();  if (NS_FAILED(res)) {    return res;  }  PRUnichar** array =    (PRUnichar**) nsMemory::Alloc(gGlobalList->Count() * sizeof(PRUnichar*));  if (!array) {    return NS_ERROR_OUT_OF_MEMORY;  }  EnumerateNodeInfo info = { array, 0, aLangGroup };  if (!gGlobalList->EnumerateForwards(EnumerateNode, &info)) {    nsMemory::Free(array);    return NS_ERROR_OUT_OF_MEMORY;  }  NS_QuickSort(array, info.mIndex, sizeof(PRUnichar*), CompareFontNames,               nsnull);  *aCount = info.mIndex;  if (*aCount) {    *aResult = array;  }  else {    nsMemory::Free(array);  }  return NS_OK;}