From: Matthew Fernandez Date: Sat, 3 Sep 2022 17:57:40 +0000 (-0700) Subject: ortho extractVChans: use cgraph wrapper for allocation X-Git-Tag: 6.0.1~11^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51cf2eabf36c77aa68d03c5084417b39bb571b7b;p=graphviz ortho extractVChans: 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. --- diff --git a/lib/ortho/ortho.c b/lib/ortho/ortho.c index 55ddae521..62b3173c1 100644 --- a/lib/ortho/ortho.c +++ b/lib/ortho/ortho.c @@ -407,7 +407,7 @@ extractVChans (maze* mp) cp = nextcp; } - chp = NEW(channel); + chp = gv_alloc(sizeof(channel)); chp->cp = cp; chp->p.p1 = cp->bb.LL.y;