MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / region_destroy

Function region_destroy

TheForceEngine/TFE_Memory/memoryRegion.cpp:192–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190 }
191
192 void region_destroy(MemoryRegion* region)
193 {
194 assert(region);
195 for (s32 i = 0; i < region->blockCount; i++)
196 {
197 free(region->memBlocks[i]);
198 }
199 free(region->memBlocks);
200 free(region);
201 }
202
203 void* allocFromHeader(MemoryBlock* block, RegionAllocHeader* header, u32 size)
204 {

Callers 4

region_testFunction · 0.85
texturepacker_destroyFunction · 0.85
lsystem_destroyFunction · 0.85
game_destroyFunction · 0.85

Calls 1

freeFunction · 0.50

Tested by

no test coverage detected