From ff7d2063b6c3740f08532f83a09a836e63fed1b0 Mon Sep 17 00:00:00 2001 From: "gordon%netscape.com" Date: Wed, 26 Mar 2003 05:14:27 +0000 Subject: [PATCH] Fix bug 198267. Fix accounting of mInactiveSize to prevent assertion. rs=darin. --- netwerk/cache/src/nsMemoryCacheDevice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netwerk/cache/src/nsMemoryCacheDevice.cpp b/netwerk/cache/src/nsMemoryCacheDevice.cpp index 0e970dbadee5..0c45be7433ea 100644 --- a/netwerk/cache/src/nsMemoryCacheDevice.cpp +++ b/netwerk/cache/src/nsMemoryCacheDevice.cpp @@ -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;