diff --git a/xpcom/build/XPCOMInit.cpp b/xpcom/build/XPCOMInit.cpp index 8be931bc8fbb..f33fd92a8545 100644 --- a/xpcom/build/XPCOMInit.cpp +++ b/xpcom/build/XPCOMInit.cpp @@ -634,7 +634,6 @@ nsresult ShutdownXPCOM(nsIServiceManager* aServMgr) { gfxPlatform::ShutdownLayersIPC(); mozilla::RemoteDecoderManagerChild::Shutdown(); - mozilla::scache::StartupCache::DeleteSingleton(); if (observerService) { mozilla::KillClearOnShutdown(ShutdownPhase::ShutdownThreads); observerService->NotifyObservers( @@ -717,6 +716,8 @@ nsresult ShutdownXPCOM(nsIServiceManager* aServMgr) { mozilla::AppShutdown::MaybeFastShutdown( mozilla::ShutdownPhase::ShutdownPostLastCycleCollection); + mozilla::scache::StartupCache::DeleteSingleton(); + PROFILER_ADD_MARKER("Shutdown xpcom", OTHER); // Shutdown xpcom. This will release all loaders and cause others holding