PostGIS  2.2.7dev-r@@SVN_REVISION@@
static void rtpg_nmapalgebraexpr_arg_destroy ( rtpg_nmapalgebraexpr_arg  arg)
static

Definition at line 1034 of file rtpg_mapalgebra.c.

References rtpg_nmapalgebraexpr_arg_t::bandarg, rtpg_nmapalgebraexpr_arg_t::callback, rtpg_nmapalgebraexpr_callback_arg::count, rtpg_nmapalgebraexpr_callback_arg::expr, rtpg_nmapalgebraexpr_callback_arg::exprcount, rtpg_nmapalgebraexpr_callback_arg::kw, rtpg_nmapalgebra_arg_destroy(), rtpg_nmapalgebraexpr_callback_arg::spi_argpos, and rtpg_nmapalgebraexpr_callback_arg::spi_plan.

Referenced by RASTER_nMapAlgebraExpr().

1034  {
1035  int i = 0;
1036 
1038 
1039  for (i = 0; i < arg->callback.exprcount; i++) {
1040  if (arg->callback.expr[i].spi_plan)
1041  SPI_freeplan(arg->callback.expr[i].spi_plan);
1042  if (arg->callback.kw.count)
1043  pfree(arg->callback.expr[i].spi_argpos);
1044  }
1045 
1046  pfree(arg);
1047 }
rtpg_nmapalgebra_arg bandarg
struct rtpg_nmapalgebraexpr_callback_arg::@18 kw
static void rtpg_nmapalgebra_arg_destroy(rtpg_nmapalgebra_arg arg)
struct rtpg_nmapalgebraexpr_callback_arg::@16 expr[3]
rtpg_nmapalgebraexpr_callback_arg callback

Here is the call graph for this function:

Here is the caller graph for this function: