Fix bug 198267. Fix accounting of mInactiveSize to prevent assertion. rs=darin.

This commit is contained in:
gordon%netscape.com 2003-03-26 05:14:27 +00:00
parent 21adc2903a
commit ff7d2063b6

View File

@ -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;