PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void rtpg_dumpvalues_arg_destroy ( rtpg_dumpvalues_arg  arg)
static

Definition at line 2824 of file rt_pg.c.

References rtpg_dumpvalues_arg_t::nbands, rtpg_dumpvalues_arg_t::nodata, rtpg_dumpvalues_arg_t::numbands, and rtpg_dumpvalues_arg_t::values.

Referenced by RASTER_dumpValues().

2824  {
2825  int i = 0;
2826 
2827  if (arg->numbands) {
2828  if (arg->nbands != NULL)
2829  pfree(arg->nbands);
2830 
2831  if (arg->values != NULL) {
2832  for (i = 0; i < arg->numbands; i++) {
2833 
2834  if (arg->values[i] != NULL)
2835  pfree(arg->values[i]);
2836 
2837  if (arg->nodata[i] != NULL)
2838  pfree(arg->nodata[i]);
2839 
2840  }
2841 
2842  pfree(arg->values);
2843  }
2844 
2845  if (arg->nodata != NULL)
2846  pfree(arg->nodata);
2847  }
2848 
2849  pfree(arg);
2850 }

Here is the caller graph for this function: