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

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

100 {
101  int i;
102  if ( ! mline ) return;
103 
104  if ( mline->bbox )
105  lwfree(mline->bbox);
106 
107  for ( i = 0; i < mline->ngeoms; i++ )
108  if ( mline->geoms && mline->geoms[i] )
109  lwline_free(mline->geoms[i]);
110 
111  if ( mline->geoms )
112  lwfree(mline->geoms);
113 
114  lwfree(mline);
115 }
void lwfree(void *mem)
Definition: lwutil.c:190
void lwline_free(LWLINE *line)
Definition: lwline.c:63
int ngeoms
Definition: liblwgeom.h:437
LWLINE ** geoms
Definition: liblwgeom.h:439
GBOX * bbox
Definition: liblwgeom.h:435

Here is the call graph for this function:

Here is the caller graph for this function: