PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ rtpg_dumpvalues_arg_destroy()

static void rtpg_dumpvalues_arg_destroy ( rtpg_dumpvalues_arg  arg)
static

Definition at line 372 of file rtpg_pixel.c.

372  {
373  int i = 0;
374 
375  if (arg->numbands > 0) {
376  if (arg->nbands != NULL)
377  pfree(arg->nbands);
378 
379  if (arg->values != NULL) {
380  for (i = 0; i < arg->numbands; i++) {
381 
382  if (arg->values[i] != NULL)
383  pfree(arg->values[i]);
384 
385  if (arg->nodata[i] != NULL)
386  pfree(arg->nodata[i]);
387  }
388 
389  pfree(arg->values);
390  }
391 
392  if (arg->nodata != NULL)
393  pfree(arg->nodata);
394  }
395 
396  pfree(arg);
397 }

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().

Here is the caller graph for this function: