зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1058099 - Cancel CacheStorageService::mPurgeTimer if it's still set during shutdown r=mayhemer
This commit is contained in:
Родитель
240a858fc3
Коммит
96f2ba264b
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче