From 84a2b7bcdc3918c93d3c0bac7e4f95761a0cb90e Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 17 Nov 2022 17:14:02 -0800 Subject: [PATCH] neatogen newIpair: use cgraph wrapper for allocation The lib/cgraph/alloc.h wrappers are similar to the older lib/common/memory.h wrappers except (1) they are header-only and (2) they live in a directory (cgraph) that is at the root of the dependency tree. The long term plan is to replace all use of lib/common/memory.h with lib/cgraph/alloc.h. --- lib/neatogen/multispline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/neatogen/multispline.c b/lib/neatogen/multispline.c index 57eea9f89..a6a03970a 100644 --- a/lib/neatogen/multispline.c +++ b/lib/neatogen/multispline.c @@ -182,7 +182,7 @@ static int cmpIpair(Dt_t * d, int *p1, int *p2, Dtdisc_t * disc) static void *newIpair(Dt_t * d, Ipair * objp, Dtdisc_t * disc) { - Ipair *newp = NEW(Ipair); + Ipair *newp = gv_alloc(sizeof(Ipair)); (void)d; (void)disc; -- 2.40.0