Bug 1058099 - Cancel CacheStorageService::mPurgeTimer if it's still set during shutdown r=mayhemer
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user