зеркало из https://github.com/mozilla/pjs.git
Fix bug 198267. Fix accounting of mInactiveSize to prevent assertion. rs=darin.
This commit is contained in:
Родитель
f6343941a2
Коммит
9bcdf03dcd
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче