if (getRDFService()) nsServiceManager::ReleaseService(kRDFServiceCID, getRDFService(), this);
nsCOMPtr<nsIMsgAccountManager> am = do_QueryReferent(mAccountManager); if (am) am->RemoveIncomingServerListener(this);  if (--gAccountManagerResourceRefCnt == 0) { NS_IF_RELEASE(kNC_Child); NS_IF_RELEASE(kNC_Name); NS_IF_RELEASE(kNC_FolderTreeName); NS_IF_RELEASE(kNC_FolderTreeSimpleName); NS_IF_RELEASE(kNC_NameSort); NS_IF_RELEASE(kNC_FolderTreeNameSort); NS_IF_RELEASE(kNC_PageTag); NS_IF_RELEASE(kNC_IsDefaultServer); NS_IF_RELEASE(kNC_SupportsFilters); NS_IF_RELEASE(kNC_CanGetMessages); NS_IF_RELEASE(kNC_Account); NS_IF_RELEASE(kNC_Server); NS_IF_RELEASE(kNC_Identity); NS_IF_RELEASE(kNC_PageTitleMain); NS_IF_RELEASE(kNC_PageTitleServer); NS_IF_RELEASE(kNC_PageTitleCopies); NS_IF_RELEASE(kNC_PageTitleOfflineAndDiskSpace); NS_IF_RELEASE(kNC_PageTitleDiskSpace); NS_IF_RELEASE(kNC_PageTitleAddressing); NS_IF_RELEASE(kNC_PageTitleAdvanced); NS_IF_RELEASE(kNC_PageTitleSMTP); NS_IF_RELEASE(kTrueLiteral);  NS_IF_RELEASE(kNC_AccountRoot);    NS_IF_RELEASE(kNC_Settings);   NS_IF_RELEASE(kDefaultServerAtom); mAccountArcsOut = nsnull; mAccountRootArcsOut = nsnull; }
nsMsgAccountManagerDataSource::~nsMsgAccountManagerDataSource(){  if (getRDFService()) nsServiceManager::ReleaseService(kRDFServiceCID,                                                    getRDFService(),                                                    this);}