nsMemory::Free(value);
nsAllocator::Free(value);
nsresult nsCharsetMenu::AddFromPrefsToMenu(                        nsVoidArray * aArray,                         nsIRDFContainer * aContainer,                         const char * aKey,                         nsISupportsArray * aDecs,                         char * aIDPrefix){  nsresult res = NS_OK;  PRUnichar * value = NULL;  res = mPrefService->GetLocalizedUnicharPref(aKey, &value);  if (NS_FAILED(res)) return res;  if (value != NULL) {    res = AddFromStringToMenu(NS_CONST_CAST(char *, NS_ConvertUCS2toUTF8(value).get()), aArray, aContainer,       aDecs, aIDPrefix);    nsMemory::Free(value);  }  return res;}