1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00
This commit is contained in:
Brian Fiete 2021-06-24 06:59:29 -07:00
parent 80007037d7
commit e3db26004b

View file

@ -180,10 +180,10 @@ ContiguousHeap::AllocRef ContiguousHeap::Alloc(int size)
if (block->mKind == ChBlockKind_Merged)
{
itr--;
if (mFreeIdx >= mFreeList.mSize)
mFreeIdx = 0;
block->mKind = (ChBlockKind)0;
mFreeList.RemoveAtFast(mFreeIdx);
if (mFreeIdx >= mFreeList.mSize)
mFreeIdx = 0;
continue;
}