PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ ptarray_free()

void ptarray_free ( POINTARRAY pa)

Definition at line 330 of file ptarray.c.

References POINTARRAY::flags, FLAGS_GET_READONLY, LWDEBUG, lwfree(), and POINTARRAY::serialized_pointlist.

Referenced by _lwt_AddFaceSplit(), _lwt_EdgeMotionArea(), _lwt_HealEdges(), gbox_to_gml2(), gbox_to_gml3(), lwcircstring_free(), lwcircstring_stroke(), lwcompound_stroke(), lwline_free(), lwline_from_lwgeom_array(), lwline_from_wkb_state(), lwline_locate_along(), lwline_simplify(), lwline_split_by_point_to(), lwpoint_free(), lwpoint_from_wkb_state(), lwpoly_free(), lwpoly_grid(), lwpoly_make_geos_friendly(), lwpoly_segmentize2d(), lwpoly_simplify(), lwtriangle_free(), lwtriangle_from_wkb_state(), lwtriangle_is_repeated_points(), ptarray_merge(), ptarray_segmentize2d(), ptarray_to_GEOSLinearRing(), ring_make_geos_friendly(), wkt_parser_circularstring_new(), wkt_parser_linestring_new(), wkt_parser_point_new(), wkt_parser_polygon_add_ring(), wkt_parser_ptarray_add_coord(), wkt_parser_triangle_new(), and yydestruct().

331 {
332  if(pa)
333  {
334  if(pa->serialized_pointlist && ( ! FLAGS_GET_READONLY(pa->flags) ) )
336  lwfree(pa);
337  LWDEBUG(5,"Freeing a PointArray");
338  }
339 }
uint8_t * serialized_pointlist
Definition: liblwgeom.h:365
void lwfree(void *mem)
Definition: lwutil.c:242
#define FLAGS_GET_READONLY(flags)
Definition: liblwgeom.h:143
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:83
uint8_t flags
Definition: liblwgeom.h:368
Here is the call graph for this function:
Here is the caller graph for this function: