PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ rtpg_setvaluesgv_arg_destroy()

static void rtpg_setvaluesgv_arg_destroy ( rtpg_setvaluesgv_arg  arg)
static

Definition at line 1110 of file rtpg_pixel.c.

References rtpg_setvaluesgv_geomval_t::geom, rtpg_setvaluesgv_arg_t::gv, lwgeom_free(), rtpg_setvaluesgv_geomval_t::mask, rtpg_setvaluesgv_arg_t::ngv, and rt_raster_destroy().

Referenced by RASTER_setPixelValuesGeomval().

1110  {
1111  int i = 0;
1112 
1113  if (arg->gv != NULL) {
1114  for (i = 0; i < arg->ngv; i++) {
1115  if (arg->gv[i].geom != NULL)
1116  lwgeom_free(arg->gv[i].geom);
1117  if (arg->gv[i].mask != NULL)
1118  rt_raster_destroy(arg->gv[i].mask);
1119  }
1120 
1121  pfree(arg->gv);
1122  }
1123 
1124  pfree(arg);
1125 }
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1099
rtpg_setvaluesgv_geomval gv
Definition: rtpg_pixel.c:1081
void rt_raster_destroy(rt_raster raster)
Release memory associated to a raster.
Definition: rt_raster.c:82
Here is the call graph for this function:
Here is the caller graph for this function: