PRUint32 numElements = mElements.Count(); for (PRUint32 i = 0; i < numElements; i++) { nsIFormControl* elem = (nsIFormControl*) mElements.ElementAt(i); if (mLookupTable) { RemoveElementFromTable(elem); }  }
mElements.Clear();  if (mLookupTable) mLookupTable->Reset();
nsFormControlList::Clear(){  PRUint32 numElements = mElements.Count();  for (PRUint32 i = 0; i < numElements; i++) {    nsIFormControl* elem = (nsIFormControl*) mElements.ElementAt(i);    if (mLookupTable) {      RemoveElementFromTable(elem);    }    // WEAK, don't release  }}