NS_RELEASE(baseURI);
NS_IF_RELEASE(baseURI);
nsDOMImplementation::CreateDocument(const nsString& aNamespaceURI,                                     const nsString& aQualifiedName,                                     nsIDOMDocumentType* aDoctype,                                     nsIDOMDocument** aReturn){    NS_ENSURE_ARG_POINTER(aReturn);        nsresult rv = NS_OK;  *aReturn = nsnull;  nsIURI* baseURI;  rv = mDocument->GetBaseURL(baseURI);  if (NS_FAILED(rv)) return rv;  NS_NewDOMDocument(aReturn, aNamespaceURI, aQualifiedName, aDoctype, baseURI);  NS_RELEASE(baseURI);  return rv;}