Fixed bug using patch by ryants.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1068 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
1a2e0328a0
commit
ae4fbd418d
1 changed files with 2 additions and 0 deletions
|
@ -790,6 +790,8 @@ bool FixedAllocator::TrimChunkList( void )
|
||||||
return false;
|
return false;
|
||||||
// Use the "make-a-temp-and-swap" trick to remove excess capacity.
|
// Use the "make-a-temp-and-swap" trick to remove excess capacity.
|
||||||
Chunks( chunks_ ).swap( chunks_ );
|
Chunks( chunks_ ).swap( chunks_ );
|
||||||
|
deallocChunk_ = &chunks_.front();
|
||||||
|
allocChunk_ = &chunks_.back();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue