PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwmline_free()

void lwmline_free ( LWMLINE mline)
extern

Definition at line 112 of file lwmline.c.

113{
114 if (!mline)
115 return;
116
117 if (mline->bbox)
118 lwfree(mline->bbox);
119
120 if (mline->geoms)
121 {
122 for (uint32_t i = 0; i < mline->ngeoms; i++)
123 if (mline->geoms[i])
124 lwline_free(mline->geoms[i]);
125 lwfree(mline->geoms);
126 }
127
128 lwfree(mline);
129}
void lwfree(void *mem)
Definition lwutil.c:248
void lwline_free(LWLINE *line)
Definition lwline.c:67
GBOX * bbox
Definition liblwgeom.h:546
LWLINE ** geoms
Definition liblwgeom.h:547
uint32_t ngeoms
Definition liblwgeom.h:552

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

Referenced by geography_centroid(), lwgeom_free(), parse_geojson_multilinestring(), and test_geohash().

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