зеркало из https://github.com/mozilla/gecko-dev.git
Bug 719315: Free unused chunks. (r=luke)
This commit is contained in:
Родитель
82961d7267
Коммит
4e5446c122
|
@ -143,8 +143,12 @@ LifoAlloc::freeUnused()
|
|||
}
|
||||
|
||||
/* Free all chunks after |latest|. */
|
||||
for (BumpChunk *victim = latest->next(); victim; victim = victim->next())
|
||||
BumpChunk *it = latest->next();
|
||||
while (it) {
|
||||
BumpChunk *victim = it;
|
||||
it = it->next();
|
||||
BumpChunk::delete_(victim);
|
||||
}
|
||||
|
||||
latest->setNext(NULL);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче