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:
rich_sposato 2010-03-15 06:03:01 +00:00
parent 1a2e0328a0
commit ae4fbd418d

View file

@ -790,6 +790,8 @@ bool FixedAllocator::TrimChunkList( void )
return false;
// Use the "make-a-temp-and-swap" trick to remove excess capacity.
Chunks( chunks_ ).swap( chunks_ );
deallocChunk_ = &chunks_.front();
allocChunk_ = &chunks_.back();
return true;
}