PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwtriangle_free()

void lwtriangle_free ( LWTRIANGLE triangle)

Definition at line 69 of file lwtriangle.c.

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

Referenced by lwgeom_free(), and lwtin_free().

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 }
POINTARRAY * points
Definition: liblwgeom.h:433
void lwfree(void *mem)
Definition: lwutil.c:244
void ptarray_free(POINTARRAY *pa)
Definition: ptarray.c:330
GBOX * bbox
Definition: liblwgeom.h:431
Here is the call graph for this function:
Here is the caller graph for this function: