res = nsServiceManager::GetService(kRDFServiceCID, NS_GET_IID(nsIRDFService), (nsISupports **)&rdfServ); if (NS_FAILED(res)) goto done;  res = rdfServ->UnregisterDataSource(this);  done: if (rdfServ != NULL) nsServiceManager::ReleaseService(kRDFServiceCID, rdfServ);
NS_IF_RELEASE(kNC_BrowserAutodetMenuRoot);
nsresult nsCharsetMenu::Done() {  nsresult res = NS_OK;  nsIRDFService * rdfServ = NULL;  res = nsServiceManager::GetService(kRDFServiceCID, NS_GET_IID(nsIRDFService),       (nsISupports **)&rdfServ);  if (NS_FAILED(res)) goto done;  res = rdfServ->UnregisterDataSource(this);done:  if (rdfServ != NULL) nsServiceManager::ReleaseService(kRDFServiceCID,       rdfServ);  NS_IF_RELEASE(kNC_BrowserCharsetMenuRoot);  NS_IF_RELEASE(kNC_BrowserMoreCharsetMenuRoot);  NS_IF_RELEASE(kNC_BrowserMore1CharsetMenuRoot);  NS_IF_RELEASE(kNC_BrowserMore2CharsetMenuRoot);  NS_IF_RELEASE(kNC_BrowserMore3CharsetMenuRoot);  NS_IF_RELEASE(kNC_BrowserMore4CharsetMenuRoot);  NS_IF_RELEASE(kNC_BrowserMore5CharsetMenuRoot);  NS_IF_RELEASE(kNC_BrowserMore6CharsetMenuRoot);  NS_IF_RELEASE(kNC_MaileditCharsetMenuRoot);  NS_IF_RELEASE(kNC_MailviewCharsetMenuRoot);  NS_IF_RELEASE(kNC_ComposerCharsetMenuRoot);  NS_IF_RELEASE(kNC_Name);  NS_IF_RELEASE(kNC_Checked);  NS_IF_RELEASE(kNC_CharsetDetector);  NS_IF_RELEASE(kNC_BookmarkSeparator);  NS_IF_RELEASE(kRDF_type);  NS_IF_RELEASE(mInner);  return res;}