if (mOwnerContent) { nsCOMPtr<nsIDocument> doc;  mOwnerContent->GetDocument(*getter_AddRefs(doc));  if (doc) { doc->SetSubDocumentFor(mOwnerContent, nsnull); }  mOwnerContent = nsnull; }  nsCOMPtr<nsIBaseWindow> base_win(do_QueryInterface(mDocShell));  if (base_win) { base_win->Destroy(); }  mDocShell = nsnull;
nsFrameLoader::Destroy(){  return NS_OK;}