* Contributors: Details at https://graphviz.org
*************************************************************************/
+#include <cgraph/alloc.h>
#include <glcomp/glcompset.h>
-#include <common/memory.h>
#include <glcomp/glcomppanel.h>
#include <glcomp/glcomplabel.h>
#include <glcomp/glcompbutton.h>
glCompSet *glCompSetNew(int w, int h)
{
- glCompSet *s = NEW(glCompSet);
+ glCompSet *s = gv_alloc(sizeof(glCompSet));
glCompInitCommon((glCompObj *) s, NULL, 0.0f, 0.0f);
s->common.width = (GLfloat) w;
s->common.height = (GLfloat) h;