PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwtriangle_free()

void lwtriangle_free ( LWTRIANGLE triangle)

Definition at line 69 of file lwtriangle.c.

70 {
71  if ( ! triangle ) return;
72 
73  if (triangle->bbox)
74  lwfree(triangle->bbox);
75 
76  if (triangle->points)
77  ptarray_free(triangle->points);
78 
79  lwfree(triangle);
80 }
void lwfree(void *mem)
Definition: lwutil.c:244
void ptarray_free(POINTARRAY *pa)
Definition: ptarray.c:328
GBOX * bbox
Definition: liblwgeom.h:434
POINTARRAY * points
Definition: liblwgeom.h:436

References LWTRIANGLE::bbox, lwfree(), LWTRIANGLE::points, and ptarray_free().

Referenced by lwgeom_free(), and lwtin_free().

Here is the call graph for this function:
Here is the caller graph for this function: