PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void rtpg_setvaluesgv_arg_destroy ( rtpg_setvaluesgv_arg  arg)
static

Definition at line 3760 of file rt_pg.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().

3760  {
3761  int i = 0;
3762 
3763  if (arg->gv != NULL) {
3764  for (i = 0; i < arg->ngv; i++) {
3765  if (arg->gv[i].geom != NULL)
3766  lwgeom_free(arg->gv[i].geom);
3767  if (arg->gv[i].mask != NULL)
3768  rt_raster_destroy(arg->gv[i].mask);
3769  }
3770 
3771  pfree(arg->gv);
3772  }
3773 
3774  pfree(arg);
3775 }
void rt_raster_destroy(rt_raster raster)
Release memory associated to a raster.
Definition: rt_api.c:5387
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1006
rtpg_setvaluesgv_geomval gv
Definition: rt_pg.c:3731

Here is the call graph for this function:

Here is the caller graph for this function: