PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ rtpg_setvaluesgv_arg_destroy()

static void rtpg_setvaluesgv_arg_destroy ( rtpg_setvaluesgv_arg  arg)
static

Definition at line 1109 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().

1109  {
1110  int i = 0;
1111 
1112  if (arg->gv != NULL) {
1113  for (i = 0; i < arg->ngv; i++) {
1114  if (arg->gv[i].geom != NULL)
1115  lwgeom_free(arg->gv[i].geom);
1116  if (arg->gv[i].mask != NULL)
1117  rt_raster_destroy(arg->gv[i].mask);
1118  }
1119 
1120  pfree(arg->gv);
1121  }
1122 
1123  pfree(arg);
1124 }
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1050
rtpg_setvaluesgv_geomval gv
Definition: rtpg_pixel.c:1080
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: