Quiet realloc-free warnings

This commit is contained in:
elasota
2024-08-07 00:19:11 -04:00
parent 5dd468ec46
commit c5addb5ed4
2 changed files with 2 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ void GpAllocator_C::Free(void *buf)
const GpAllocator_C_MMBlock *mmBlock = reinterpret_cast<const GpAllocator_C_MMBlock*>(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()

View File

@@ -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)