mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Fix bug 198267. Fix accounting of mInactiveSize to prevent assertion. rs=darin.
This commit is contained in:
parent
21adc2903a
commit
ff7d2063b6
3
netwerk/cache/src/nsMemoryCacheDevice.cpp
vendored
3
netwerk/cache/src/nsMemoryCacheDevice.cpp
vendored
@ -330,7 +330,8 @@ nsMemoryCacheDevice::EvictEntry(nsCacheEntry * entry, PRBool deleteEntry)
|
||||
// update statistics
|
||||
PRInt32 memoryRecovered = (PRInt32)entry->Size();
|
||||
mTotalSize -= memoryRecovered;
|
||||
mInactiveSize -= memoryRecovered;
|
||||
if (!entry->IsDoomed())
|
||||
mInactiveSize -= memoryRecovered;
|
||||
--mEntryCount;
|
||||
|
||||
if (deleteEntry) delete entry;
|
||||
|
Loading…
Reference in New Issue
Block a user