From 6e004b54884d1a3f6d3a3971fc7994e684e19764 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 16 Sep 2022 17:33:13 -0700 Subject: [PATCH] glcomp glNewFontFromParent: 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/glcomp/glcompfont.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/glcomp/glcompfont.c b/lib/glcomp/glcompfont.c index e023aff1a..d66a2b946 100644 --- a/lib/glcomp/glcompfont.c +++ b/lib/glcomp/glcompfont.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include @@ -81,7 +80,7 @@ glCompFont *glNewFont (glCompSet * s, char *text, glCompColor * c,glCompFontType glCompFont *glNewFontFromParent(glCompObj * o, char *text) { glCompCommon *parent; - glCompFont *font = NEW(glCompFont); + glCompFont *font = gv_alloc(sizeof(glCompFont)); parent = o->common.parent; if (parent) { parent = o->common.parent; -- 2.40.0