Fix bug 198267. Fix accounting of mInactiveSize to prevent assertion. rs=darin.
git-svn-id: svn://10.0.0.236/trunk@140337 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user