mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 22:05:44 +00:00
Release observer service on shutdown.
This commit is contained in:
parent
886e30e17b
commit
0afe926af1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user