Release observer service on shutdown.

This commit is contained in:
blakeross%telocity.com 2002-09-30 21:02:28 +00:00
parent 886e30e17b
commit 0afe926af1

View File

@ -109,9 +109,12 @@ nsDownloadManager::~nsDownloadManager()
NS_IF_RELEASE(gNC_DownloadState);
NS_IF_RELEASE(gNC_StatusText);
nsServiceManager::ReleaseService(kRDFServiceCID, gRDFService);
nsServiceManager::ReleaseService(kRDFServiceCID, gObserverService);
gRDFService = nsnull;
nsServiceManager::ReleaseService("@mozilla.org/observer-service;1", gObserverService);
gObserverService = nsnull;
}
void PR_CALLBACK nsDownloadManager::DownloadCallback(nsITimer *aTimer, void *aClosure)