*aResult = new nsString(value); delete value;
*aResult =  NS_NewAtom(value); PR_Free(value);
nsresult nsCharsetConverterManager::GetBundleValue(nsIStringBundle * aBundle,                                                    nsString * aName,                                                    nsString * aProp,                                                    nsString ** aResult){  nsresult res = NS_OK;  nsAutoString key(aName->GetUnicode());  key.Append(*aProp);  PRUnichar * value = NULL;  res = aBundle->GetStringFromName(key.GetUnicode(), &value);  if (NS_FAILED(res)) return res;  *aResult = new nsString(value);  delete value;  return res;}