PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ rtpg_nmapalgebraexpr_arg_destroy()

static void rtpg_nmapalgebraexpr_arg_destroy ( rtpg_nmapalgebraexpr_arg  arg)
static

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

1084  {
1085  int i = 0;
1086 
1088 
1089  for (i = 0; i < arg->callback.exprcount; i++) {
1090  if (arg->callback.expr[i].spi_plan)
1091  SPI_freeplan(arg->callback.expr[i].spi_plan);
1092  if (arg->callback.kw.count)
1093  pfree(arg->callback.expr[i].spi_argpos);
1094  }
1095 
1096  pfree(arg);
1097 }
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: