PostGIS  2.2.8dev-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 25 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().

26 {
27  int i;
28  if ( ! node ) return;
29 
30  for ( i = 0; i < node->num_nodes; i++ )
31  circ_tree_free(node->nodes[i]);
32 
33  if ( node->nodes ) lwfree(node->nodes);
34  lwfree(node);
35 }
void lwfree(void *mem)
Definition: lwutil.c:214
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: