#include <include/flecs.h> FLECS_API void ecs_iter_fini(ecs_iter_t *it)
Cleanup iterator resources. This operation cleans up any resources associated with the iterator. Iterators may contain allocated resources when the number of matched terms exceeds ECS_TERM_CACHE_SIZE and/or when the source for the iterator requires to keep state while iterating.
This operation should only be used when an iterator is not iterated until completion (next has not yet returned false). When an iterator is iterated until completion, resources are automatically freed.
it- The iterator.