PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ destroy_strtree()

static void destroy_strtree ( struct STRTree tree)
static

Clean up STRTree after use.

Definition at line 123 of file lwgeom_geos_cluster.c.

124 {
125  size_t i;
126  GEOSSTRtree_destroy(tree->tree);
127 
128  if (tree->envelopes)
129  {
130  for (i = 0; i < tree->num_geoms; i++)
131  {
132  GEOSGeom_destroy(tree->envelopes[i]);
133  }
134  lwfree(tree->envelopes);
135  }
136  lwfree(tree->geom_ids);
137 }
void lwfree(void *mem)
Definition: lwutil.c:244
GEOSGeometry ** envelopes
uint32_t * geom_ids
uint32_t num_geoms
GEOSSTRtree * tree

References lwfree(), and STRTree::tree.

Referenced by union_dbscan_general(), union_dbscan_minpoints_1(), and union_intersecting_pairs().

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