diff --git a/AerofoilPortable/GpAllocator_C.cpp b/AerofoilPortable/GpAllocator_C.cpp index e34be51..7ec3f35 100644 --- a/AerofoilPortable/GpAllocator_C.cpp +++ b/AerofoilPortable/GpAllocator_C.cpp @@ -104,7 +104,7 @@ void GpAllocator_C::Free(void *buf) const GpAllocator_C_MMBlock *mmBlock = reinterpret_cast(bytes - GpAllocator_C_MMBlock::AlignedSize()); void *freeLoc = bytes - GpAllocator_C_MMBlock::AlignedSize() - mmBlock->m_offsetFromAllocLocation; - (void)realloc(freeLoc, 0); + free(freeLoc); } GpAllocator_C *GpAllocator_C::GetInstance() diff --git a/PortabilityLayer/ScanlineMaskBuilder.cpp b/PortabilityLayer/ScanlineMaskBuilder.cpp index 96443df..3bda80a 100644 --- a/PortabilityLayer/ScanlineMaskBuilder.cpp +++ b/PortabilityLayer/ScanlineMaskBuilder.cpp @@ -15,7 +15,7 @@ namespace PortabilityLayer ScanlineMaskBuilder::~ScanlineMaskBuilder() { if (m_spans) - (void)realloc(m_spans, 0); + free(m_spans); } bool ScanlineMaskBuilder::AppendSpan(size_t span)