зеркало из https://github.com/mozilla/pjs.git
Fix for Bug 31900 "[MLK] Leaking CacheInfo objects".
This commit is contained in:
Родитель
b9d2f17968
Коммит
46f788b40c
|
@ -46,7 +46,11 @@ nsReplacementPolicy::~nsReplacementPolicy()
|
|||
nsMemory::Free(mRankedEntries);
|
||||
if (mMapRecordIdToEntry)
|
||||
nsMemory::Free(mMapRecordIdToEntry);
|
||||
delete mCaches;
|
||||
while (mCaches) {
|
||||
CacheInfo* nextCacheInfo = mCaches->mNext;
|
||||
delete mCaches;
|
||||
mCaches = nextCacheInfo;
|
||||
}
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
Загрузка…
Ссылка в новой задаче