PostGIS  2.3.7dev-r@@SVN_REVISION@@
void lwpointiterator_destroy ( LWPOINTITERATOR s)

Free all memory associated with the iterator.

Definition at line 269 of file lwiterator.c.

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

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

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

Here is the call graph for this function:

Here is the caller graph for this function: