PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwtin_free()

void lwtin_free ( LWTIN tin)

Definition at line 39 of file lwtin.c.

40 {
41  uint32_t i;
42  if ( ! tin ) return;
43  if ( tin->bbox )
44  lwfree(tin->bbox);
45 
46  for ( i = 0; i < tin->ngeoms; i++ )
47  if ( tin->geoms && tin->geoms[i] )
48  lwtriangle_free(tin->geoms[i]);
49 
50  if ( tin->geoms )
51  lwfree(tin->geoms);
52 
53  lwfree(tin);
54 }
void lwfree(void *mem)
Definition: lwutil.c:244
void lwtriangle_free(LWTRIANGLE *triangle)
Definition: lwtriangle.c:69
uint32_t ngeoms
Definition: liblwgeom.h:588
LWTRIANGLE ** geoms
Definition: liblwgeom.h:590
GBOX * bbox
Definition: liblwgeom.h:586
unsigned int uint32_t
Definition: uthash.h:78

References LWTIN::bbox, LWTIN::geoms, lwfree(), lwtriangle_free(), and LWTIN::ngeoms.

Referenced by lwgeom_free().

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