Bug 1058099 - Cancel CacheStorageService::mPurgeTimer if it's still set during shutdown r=mayhemer

This commit is contained in:
Steve Workman
2014-09-02 13:33:32 -07:00
parent 966044b5dd
commit 1e9f30d259

View File

@@ -155,6 +155,11 @@ void CacheStorageService::ShutdownBackground()
{
MOZ_ASSERT(IsOnManagementThread());
// Cancel purge timer to avoid leaking.
if (mPurgeTimer) {
mPurgeTimer->Cancel();
}
Pool(false).mFrecencyArray.Clear();
Pool(false).mExpirationArray.Clear();
Pool(true).mFrecencyArray.Clear();