mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 719315: Free unused chunks. (r=luke)
This commit is contained in:
parent
8500adc8ac
commit
ab18051b4f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user