PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
|
static |
This function is passed into the generic GetGeomCache function in the case of a cache miss, so that it can free the particular indexed structure being managed.
In the case of prepared geometry, we want to leave the actual PrepGeomCache allocated and in place, but ensure that the GEOS Geometry and PreparedGeometry are freed so we don't leak memory as we transition from cache hit to miss to hit, etc.
Definition at line 397 of file lwgeom_geos_prepared.c.
References PrepGeomCache::context_callback, PrepGeomCache::gcache, PrepGeomHashEntry::geom, PrepGeomCache::geom, GetPrepGeomHashEntry(), LW_FAILURE, LW_SUCCESS, PrepGeomHashEntry::prepared_geom, and PrepGeomCache::prepared_geom.