PostGIS  2.3.7dev-r@@SVN_REVISION@@
void lwmline_free ( LWMLINE mline)

Definition at line 112 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().

113 {
114  int i;
115  if ( ! mline ) return;
116 
117  if ( mline->bbox )
118  lwfree(mline->bbox);
119 
120  for ( i = 0; i < mline->ngeoms; i++ )
121  if ( mline->geoms && mline->geoms[i] )
122  lwline_free(mline->geoms[i]);
123 
124  if ( mline->geoms )
125  lwfree(mline->geoms);
126 
127  lwfree(mline);
128 }
void lwfree(void *mem)
Definition: lwutil.c:242
void lwline_free(LWLINE *line)
Definition: lwline.c:76
int ngeoms
Definition: liblwgeom.h:480
LWLINE ** geoms
Definition: liblwgeom.h:482
GBOX * bbox
Definition: liblwgeom.h:478

Here is the call graph for this function:

Here is the caller graph for this function: