Use ObjFW functions for memory management
FossilOrigin-Name: 71ebb79f8f6a5c2920c91b004bf274f9133e3ee04caddaf0f5ba01f98db27762
This commit is contained in:
parent
a28209edcf
commit
3d8735818d
10 changed files with 23 additions and 32 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue