if (mParent) { mParent->RemoveChildGroup(this); mParent = nsnull; }
if (mParent) { mParent->RemoveChildGroup(this); NS_RELEASE(mParent); }
nsDocLoaderImpl::Destroy(){  Stop();// Remove the document loader from the parent list of loaders...  if (mParent)   {    mParent->RemoveChildGroup(this);    mParent = nsnull;  }  // Release all the information about network requests...  ClearRequestInfoHash();  // Release all the information about registered listeners...  PRInt32 i, count;  count = mListenerInfoList.Count();  for(i=0; i<count; i++) {    nsListenerInfo *info =      NS_STATIC_CAST(nsListenerInfo*, mListenerInfoList.ElementAt(i));    delete info;  }  mListenerInfoList.Clear();  mListenerInfoList.Compact();  mDocumentRequest = 0;  if (mLoadGroup)    mLoadGroup->SetGroupObserver(nsnull);  return NS_OK;}