qbsp: replace last malloc with AllocMem

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-02-09 17:38:56 +10:30
parent b5c84dafa3
commit 262ffab5d5
1 changed files with 1 additions and 2 deletions

View File

@ -20,7 +20,6 @@
*/
#include <limits.h>
#include <malloc.h>
#include "qbsp.h"
@ -609,7 +608,7 @@ LinkConvexFaces(surface_t *planelist, node_t *leafnode)
// write the list of faces, and free the originals
leaffaces += count;
leafnode->markfaces = malloc(sizeof(face_t *) * (count + 1)); /* FIXME */
leafnode->markfaces = AllocMem(OTHER, sizeof(face_t *) * (count + 1), true);
i = 0;
for (surf = planelist; surf; surf = pnext) {