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

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

173  {
174  int i = 0;
175 
176  if (arg->numbands > 0) {
177  if (arg->nbands != NULL)
178  pfree(arg->nbands);
179 
180  if (arg->values != NULL) {
181  for (i = 0; i < arg->numbands; i++) {
182 
183  if (arg->values[i] != NULL)
184  pfree(arg->values[i]);
185 
186  if (arg->nodata[i] != NULL)
187  pfree(arg->nodata[i]);
188  }
189 
190  pfree(arg->values);
191  }
192 
193  if (arg->nodata != NULL)
194  pfree(arg->nodata);
195  }
196 
197  pfree(arg);
198 }

Here is the caller graph for this function: