mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1079789 - Don't doom expired entries in the HTTP cache intermediate memory pool. r=michal
CLOSED TREE
This commit is contained in:
parent
7de7456c72
commit
8ebce48c30
@ -1261,11 +1261,10 @@ CacheStorageService::MemoryPool::PurgeExpired()
|
||||
nsRefPtr<CacheEntry> entry = mExpirationArray[i];
|
||||
|
||||
uint32_t expirationTime = entry->GetExpirationTime();
|
||||
if (expirationTime > 0 && expirationTime <= now) {
|
||||
LOG((" dooming expired entry=%p, exptime=%u (now=%u)",
|
||||
if (expirationTime > 0 && expirationTime <= now &&
|
||||
entry->Purge(CacheEntry::PURGE_WHOLE)) {
|
||||
LOG((" purged expired, entry=%p, exptime=%u (now=%u)",
|
||||
entry.get(), entry->GetExpirationTime(), now));
|
||||
|
||||
entry->PurgeAndDoom();
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user