PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ RTreeFree()

static void RTreeFree ( RTREE_NODE root)
static

Recursively frees the child nodes, the interval and the line before freeing the root node.

Definition at line 56 of file lwgeom_rtree.c.

57{
58 POSTGIS_DEBUGF(2, "RTreeFree called for %p", root);
59
60 if (root->leftNode)
61 RTreeFree(root->leftNode);
62 if (root->rightNode)
63 RTreeFree(root->rightNode);
64 lwfree(root->interval);
65 if (root->segment)
66 {
67 lwline_free(root->segment);
68 }
69 lwfree(root);
70}
void lwfree(void *mem)
Definition lwutil.c:242
void lwline_free(LWLINE *line)
Definition lwline.c:67
static void RTreeFree(RTREE_NODE *root)
Recursively frees the child nodes, the interval and the line before freeing the root node.
struct rtree_node * leftNode
struct rtree_node * rightNode
LWLINE * segment
RTREE_INTERVAL * interval

References rtree_node::interval, rtree_node::leftNode, lwfree(), lwline_free(), rtree_node::rightNode, RTreeFree(), and rtree_node::segment.

Referenced by RTreeCacheClear(), and RTreeFree().

Here is the call graph for this function:
Here is the caller graph for this function: