PostGIS  2.3.7dev-r@@SVN_REVISION@@
void rect_tree_free ( RECT_NODE node)

Recurse from top of node tree and free all children.

does not free underlying point array.

Definition at line 42 of file lwtree.c.

References rect_node::left_node, lwfree(), rect_tree_free(), and rect_node::right_node.

Referenced by rect_tree_free(), test_rect_tree_contains_point(), and test_rect_tree_intersects_tree().

43 {
44  if ( node->left_node )
45  {
47  node->left_node = 0;
48  }
49  if ( node->right_node )
50  {
52  node->right_node = 0;
53  }
54  lwfree(node);
55 }
struct rect_node * right_node
Definition: lwtree.h:32
void lwfree(void *mem)
Definition: lwutil.c:242
void rect_tree_free(RECT_NODE *node)
Recurse from top of node tree and free all children.
Definition: lwtree.c:42
struct rect_node * left_node
Definition: lwtree.h:31

Here is the call graph for this function:

Here is the caller graph for this function: