Use ObjFW functions for memory management

FossilOrigin-Name: 71ebb79f8f6a5c2920c91b004bf274f9133e3ee04caddaf0f5ba01f98db27762
This commit is contained in:
Jonathan Schleifer 2025-03-08 03:26:23 +00:00
parent a28209edcf
commit 3d8735818d
10 changed files with 23 additions and 32 deletions

View file

@ -18,10 +18,9 @@ setarraypointers()
void
reallocv()
{
verts = (vertex *)realloc(verts, (curmaxverts *= 2) * sizeof(vertex));
verts =
(vertex *)OFResizeMemory(verts, (curmaxverts *= 2), sizeof(vertex));
curmaxverts -= 10;
if (!verts)
fatal(@"no vertex memory!");
setarraypointers();
}