aArray->Clear();
void nsCharsetMenu::FreeMenuItemArray(nsVoidArray * aArray){  PRUint32 count = aArray->Count();  for (PRUint32 i = 0; i < count; i++) {    nsMenuItem * item = (nsMenuItem *) aArray->ElementAt(i);    if (item != NULL) {      delete item;    }  }}