PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwmline_free()

void lwmline_free ( LWMLINE mline)

Definition at line 98 of file lwmline.c.

References LWMLINE::bbox, LWMLINE::geoms, lwfree(), lwline_free(), and LWMLINE::ngeoms.

Referenced by lwgeom_free(), test_geohash(), and test_lwmline_clip().

99 {
100  int i;
101  if ( ! mline ) return;
102 
103  if ( mline->bbox )
104  lwfree(mline->bbox);
105 
106  for ( i = 0; i < mline->ngeoms; i++ )
107  if ( mline->geoms && mline->geoms[i] )
108  lwline_free(mline->geoms[i]);
109 
110  if ( mline->geoms )
111  lwfree(mline->geoms);
112 
113  lwfree(mline);
114 }
void lwfree(void *mem)
Definition: lwutil.c:214
void lwline_free(LWLINE *line)
Definition: lwline.c:63
int ngeoms
Definition: liblwgeom.h:465
LWLINE ** geoms
Definition: liblwgeom.h:467
GBOX * bbox
Definition: liblwgeom.h:463
Here is the call graph for this function:
Here is the caller graph for this function: