mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
Clear gStartupCacheWrapper in the dtor.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -217,7 +217,7 @@ class StartupCacheDebugOutputStream final
|
||||
class StartupCacheWrapper final
|
||||
: public nsIStartupCache
|
||||
{
|
||||
~StartupCacheWrapper() {}
|
||||
~StartupCacheWrapper();
|
||||
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSISTARTUPCACHE
|
||||
|
||||
Reference in New Issue
Block a user