mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-22 14:45:37 +00:00
Quiet realloc-free warnings
This commit is contained in:
@@ -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()
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user