PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ circ_tree_free()

void circ_tree_free ( CIRC_NODE node)

Recurse from top of node tree and free all children.

does not free underlying point array.

Definition at line 50 of file lwgeodetic_tree.c.

References circ_tree_free(), lwfree(), circ_node::nodes, and circ_node::num_nodes.

Referenced by circ_tree_free(), CircTreeBuilder(), CircTreeFreer(), geography_distance_cache_tolerance(), geography_tree_distance(), test_tree_circ_create(), test_tree_circ_distance(), test_tree_circ_distance_threshold(), test_tree_circ_pip(), and test_tree_circ_pip2().

51 {
52  uint32_t i;
53  if ( ! node ) return;
54 
55  if (node->nodes)
56  {
57  for (i = 0; i < node->num_nodes; i++)
58  circ_tree_free(node->nodes[i]);
59  lwfree(node->nodes);
60  }
61  lwfree(node);
62 }
uint32_t num_nodes
void lwfree(void *mem)
Definition: lwutil.c:244
unsigned int uint32_t
Definition: uthash.h:78
void circ_tree_free(CIRC_NODE *node)
Recurse from top of node tree and free all children.
struct circ_node ** nodes
Here is the call graph for this function:
Here is the caller graph for this function: