From 262ffab5d5c3aa070e808de9442ebd9d46f8410a Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Sat, 9 Feb 2013 17:38:56 +1030 Subject: [PATCH] qbsp: replace last malloc with AllocMem Signed-off-by: Kevin Shanahan --- qbsp/solidbsp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qbsp/solidbsp.c b/qbsp/solidbsp.c index ad1a8137..ad3692ff 100644 --- a/qbsp/solidbsp.c +++ b/qbsp/solidbsp.c @@ -20,7 +20,6 @@ */ #include -#include #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) {