PostGIS 3.0.6dev-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 267 of file lwiterator.c.

268{
269 while (s->geoms != NULL)
270 {
271 s->geoms = pop_node(s->geoms);
272 }
273
274 while (s->pointarrays != NULL)
275 {
276 s->pointarrays = pop_node(s->pointarrays);
277 }
278
279 lwfree(s);
280}
char * s
Definition cu_in_wkt.c:23
void lwfree(void *mem)
Definition lwutil.c:242
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(), 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: