diff --git a/Include/Aurora/Memory/MemoryView.hpp b/Include/Aurora/Memory/MemoryView.hpp index 8128d986..673e3919 100644 --- a/Include/Aurora/Memory/MemoryView.hpp +++ b/Include/Aurora/Memory/MemoryView.hpp @@ -402,7 +402,7 @@ namespace Aurora::Memory MemoryView Clone(Heap *pHeap, AuUInt32 uAlignment = alignof(double)) const { auto uLength = this->uLength; - auto pData = detail::AllocateArray(uLength, uAlignment); + auto pData = detail::AllocateArray(pHeap, uLength, uAlignment); if (!pData) { return {};