NS_IF_RELEASE(kNC_HistoryBySite);
NS_IF_RELEASE(kNC_HistoryRoot);
nsGlobalHistory::~nsGlobalHistory(){  gRDFService->UnregisterDataSource(this);  if (mLastVisitDateHash)    PL_HashTableDestroy(mLastVisitDateHash);  PRInt32 writeIndex;  for (writeIndex = mPendingWrites.Count() - 1; writeIndex >= 0; --writeIndex) {    HistoryEntry* entry = (HistoryEntry*) mPendingWrites.ElementAt(writeIndex);    delete entry;  }#if defined(MOZ_BRPROF)  if (mBrowsingProfile)    nsServiceManager::ReleaseService(kBrowsingProfileCID, mBrowsingProfile);#endif  if (--gRefCnt == 0) {    if (gRDFService) {      nsServiceManager::ReleaseService(kRDFServiceCID, gRDFService);      gRDFService = nsnull;    }    NS_IF_RELEASE(kNC_Page);    NS_IF_RELEASE(kNC_Date);    NS_IF_RELEASE(kNC_VisitCount);    NS_IF_RELEASE(kNC_Title);    NS_IF_RELEASE(kNC_Referrer);    NS_IF_RELEASE(kNC_child);    NS_IF_RELEASE(kNC_URL);    NS_IF_RELEASE(kNC_HistoryBySite);    NS_IF_RELEASE(kNC_HistoryByDate);  }}