diff --git a/Source/core/Proxy.h b/Source/core/Proxy.h index 3b0bc9412..0b2830fe5 100644 --- a/Source/core/Proxy.h +++ b/Source/core/Proxy.h @@ -80,7 +80,6 @@ namespace Thunder { if (Space != nullptr) { *(reinterpret_cast(&Space[alignedSize])) = AdditionalSize; - Space = reinterpret_cast(&Space[sizeof(void*)]); } } else { @@ -94,9 +93,8 @@ namespace Thunder { operator delete( void* stAllocateBlock) { - uint8_t* originalPointer = reinterpret_cast(stAllocateBlock) - sizeof(void*); - reinterpret_cast*>(originalPointer)->__Destructed(); - ::free(originalPointer); + reinterpret_cast*>(stAllocateBlock)->__Destructed(); + ::free(stAllocateBlock); } public: