mOwnerContent->GetDocument(*getter_AddRefs(doc));
mOwnerContent->GetDocument(getter_AddRefs(doc));
nsFrameLoader::Destroy(){  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;  return NS_OK;}