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

◆ lwpointiterator_destroy()

void lwpointiterator_destroy ( LWPOINTITERATOR s)
extern

Free all memory associated with the iterator.

Definition at line 268 of file lwiterator.c.

269{
270 while (s->geoms != NULL)
271 {
272 s->geoms = pop_node(s->geoms);
273 }
274
275 while (s->pointarrays != NULL)
276 {
277 s->pointarrays = pop_node(s->pointarrays);
278 }
279
280 lwfree(s);
281}
char * s
Definition cu_in_wkt.c:23
void lwfree(void *mem)
Definition lwutil.c:248
static LISTNODE * pop_node(LISTNODE *i)
Definition lwiterator.c:63

References LWPOINTITERATOR::geoms, lwfree(), pop_node(), and s.

Referenced by count_points_using_iterator(), lwgeom_calculate_mbc(), lwgeom_get_geos_coordseq_2d(), lwgeom_isfinite(), lwgeom_trim_bits_in_place(), lwline_from_lwgeom_array(), lwmpoint_from_lwgeom(), mbc_test(), RASTER_InterpolateRaster(), rt_raster_copy_to_geometry(), test_cannot_modify_read_only(), test_mixed_rw_access(), test_modification(), test_no_memory_leaked_when_iterator_is_partially_used(), and test_ordering().

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