PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ rtpg_clip_arg_destroy()

static void rtpg_clip_arg_destroy ( rtpg_clip_arg  arg)
static

Definition at line 2984 of file rtpg_mapalgebra.c.

References rtpg_clip_arg_t::band, rtpg_clip_arg_t::mask, rtpg_clip_arg_t::raster, and rt_raster_destroy().

Referenced by RASTER_clip().

2984  {
2985  if (arg->band != NULL)
2986  pfree(arg->band);
2987 
2988  if (arg->raster != NULL)
2989  rt_raster_destroy(arg->raster);
2990  if (arg->mask != NULL)
2991  rt_raster_destroy(arg->mask);
2992 
2993  pfree(arg);
2994 }
void rt_raster_destroy(rt_raster raster)
Release memory associated to a raster.
Definition: rt_raster.c:82
rtpg_clip_band band
Here is the call graph for this function:
Here is the caller graph for this function: