Fixing heap frees.

This commit is contained in:
Ben Vanik 2015-06-04 19:18:00 -07:00
parent 52060af847
commit 53527bef17
1 changed files with 1 additions and 1 deletions

View File

@ -398,7 +398,7 @@ void Memory::SystemHeapFree(uint32_t address) {
return; return;
} }
// TODO(benvanik): lightweight pool. // TODO(benvanik): lightweight pool.
auto heap = LookupHeapByType(false, 4096); auto heap = LookupHeap(address);
heap->Release(address); heap->Release(address);
} }