diff --git a/src/xenia/memory.cc b/src/xenia/memory.cc index 183f42f10..2f5582aca 100644 --- a/src/xenia/memory.cc +++ b/src/xenia/memory.cc @@ -398,7 +398,7 @@ void Memory::SystemHeapFree(uint32_t address) { return; } // TODO(benvanik): lightweight pool. - auto heap = LookupHeapByType(false, 4096); + auto heap = LookupHeap(address); heap->Release(address); }