MOZ_COUNT_DTOR(nsHTMLFormElement);
nsHTMLFormElement::~nsHTMLFormElement(){  MOZ_COUNT_DTOR(nsHTMLFormElement);  // set the controls to have no form  PRUint32 numControls;  GetElementCount(&numControls);  for (PRUint32 i = 0; i < numControls; i++) {    // avoid addref to child    nsIFormControl* control = (nsIFormControl*)mControls->mElements.ElementAt(i);     if (control) {      // it is assummed that passing in nsnull will not release formControl's previous form      control->SetForm(nsnull);     }  }  NS_RELEASE(mControls);//nsTraceRefcnt::Destroy((nsIForm*)this, __FILE__, __LINE__);}