PRInt32 i; for (i = 0;i<NUM_SELECTIONTYPES;i++){ if (mDomSelections[i]) delete mDomSelections[i]; }
nsRangeList::~nsRangeList(){   if (mSelectionListeners)  {	  PRUint32 cnt;    nsresult rv = mSelectionListeners->Count(&cnt);    NS_ASSERTION(NS_SUCCEEDED(rv), "Count failed");    for (PRUint32 i=0;i < cnt; i++)	  {	    mSelectionListeners->RemoveElementAt(i);	  }  }  if (sInstanceCount <= 1)  {    NS_IF_RELEASE(sTableAtom);    NS_IF_RELEASE(sCellAtom);    NS_IF_RELEASE(sTbodyAtom);  }  sInstanceCount--;}