NS_IF_RELEASE(kCHROME_chrome); NS_IF_RELEASE(kCHROME_skin); NS_IF_RELEASE(kCHROME_content); NS_IF_RELEASE(kCHROME_locale); NS_IF_RELEASE(kCHROME_base); NS_IF_RELEASE(kCHROME_main); NS_IF_RELEASE(kCHROME_archive); NS_IF_RELEASE(kCHROME_displayname); NS_IF_RELEASE(kCHROME_name);  if (gRDFService) { nsServiceManager::ReleaseService(kRDFServiceCID, gRDFService); gRDFService = nsnull; } }
nsChromeRegistry::~nsChromeRegistry(){  if (mDataSourceTable) {        mDataSourceTable->Enumerate(DatasourceEnumerator, mChromeDataSource);      delete mDataSourceTable;  }     if (mRDFService) {    nsServiceManager::ReleaseService(kRDFServiceCID, mRDFService);    mRDFService = nsnull;  }  if (mRDFContainerUtils) {    nsServiceManager::ReleaseService(kRDFContainerUtilsCID, mRDFContainerUtils);    mRDFContainerUtils = nsnull;  }}