Clear gStartupCacheWrapper in the dtor.

This commit is contained in:
Pale Moon
2018-01-26 15:11:51 +01:00
committed by Roy Tam
parent 66c1abf0a3
commit 0b290fb91a
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -725,6 +725,12 @@ StartupCacheWrapper* StartupCacheWrapper::gStartupCacheWrapper = nullptr;
NS_IMPL_ISUPPORTS(StartupCacheWrapper, nsIStartupCache)
StartupCacheWrapper::~StartupCacheWrapper()
{
MOZ_ASSERT(gStartupCacheWrapper == this);
gStartupCacheWrapper = nullptr;
}
StartupCacheWrapper* StartupCacheWrapper::GetSingleton()
{
if (!gStartupCacheWrapper)