On Shutdown let servicemanager be available until the xpcom shutdown

observers are notified.
This commit is contained in:
dp%netscape.com 2000-01-10 21:26:56 +00:00
Родитель 7651f79108
Коммит 0a2e3a9e8d
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -501,7 +501,6 @@ nsresult NS_COM NS_InitXPCOM(nsIServiceManager* *result,
nsresult NS_COM NS_ShutdownXPCOM(nsIServiceManager* servMgr)
{
nsrefcnt cnt;
gShuttingDown = PR_TRUE;
// Notify observers of xpcom shutting down
nsresult rv = NS_OK;
@ -521,6 +520,11 @@ nsresult NS_COM NS_ShutdownXPCOM(nsIServiceManager* servMgr)
}
}
// XPCOM is officially in shutdown mode NOW
// Set this only after the observers have been notified as this
// will cause servicemanager to become inaccessible.
gShuttingDown = PR_TRUE;
// Release our own singletons...
XPTI_FreeInterfaceInfoManager();