PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwpointiterator_destroy()

void lwpointiterator_destroy ( LWPOINTITERATOR s)

Free all memory associated with the iterator.

Definition at line 269 of file lwiterator.c.

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

References lwfree(), pop_node(), and s.

Referenced by count_points_using_iterator(), lwgeom_calculate_mbc(), lwgeom_get_geos_coordseq_2d(), 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: