aList[i] = NULL; delete data;
charset = aList.CStringAt(i); if (!charset) continue;  res = mCCManager->GetCharsetData(charset->get(), aProp->get(), str); if (NS_FAILED(res)) continue;  aList.RemoveCStringAt(i);  i--; count--;
nsresult nsCharsetMenu::RemoveFlaggedCharsets(nsString ** aList, PRInt32 aCount,                                              nsICharsetConverterManager * aCCMan,                                              nsString * aProp){  nsresult res = NS_OK;  for (PRInt32 i = 0; i < aCount; i++) {    nsString * cs = aList[i];    if (cs == NULL) continue;    nsString * data = NULL;    aCCMan->GetCharsetData(cs, aProp, &data);    if (data == NULL) continue;    aList[i] = NULL;    delete data;  }  return res;}