delete [] *aArray;
void nsCharsetMenu::AddToInfoArray(CharsetInfo *** aArray,                                    PRInt32 * aCapacity,                                    PRInt32 * aSize,                                    CharsetInfo * aRecord){  int i;  // assure existence of data structures  if ((*aArray == NULL) || (*aCapacity <= 0)) {    *aCapacity = 8;    *aArray = new CharsetInfo * [*aCapacity];    *aSize = 0;  }  // if full, double  if (*aSize >= *aCapacity) {    *aCapacity *= 2;    CharsetInfo ** newArray = new CharsetInfo * [*aCapacity];    for (i = 0; i < *aSize; i++) newArray[i] = (*aArray)[i];    *aArray = newArray;  }  // add element  (*aArray)[(*aSize)++] = aRecord;}