PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ rect_tree_free()

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 18 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().

19 {
20  if ( node->left_node )
21  {
23  node->left_node = 0;
24  }
25  if ( node->right_node )
26  {
28  node->right_node = 0;
29  }
30  lwfree(node);
31 }
struct rect_node * right_node
Definition: lwtree.h:11
void lwfree(void *mem)
Definition: lwutil.c:214
void rect_tree_free(RECT_NODE *node)
Recurse from top of node tree and free all children.
Definition: lwtree.c:18
struct rect_node * left_node
Definition: lwtree.h:10
Here is the call graph for this function:
Here is the caller graph for this function: