PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwline_free()

void lwline_free ( LWLINE line)

Definition at line 76 of file lwline.c.

References LWLINE::bbox, lwfree(), LWLINE::points, and ptarray_free().

Referenced by _lwt_HealEdges(), _lwt_release_edges(), BOX2D_to_LWGEOM(), BOX3D_to_LWGEOM(), clean_cg_suite(), do_test_lwgeom_effectivearea_lines(), line2pts(), lwcompound_linearize(), lwcurvepoly_linearize(), LWGEOM_addpoint(), LWGEOM_envelope(), lwgeom_free(), LWGEOM_line_from_mpoint(), LWGEOM_makepoly(), LWGEOM_removepoint(), LWGEOM_setpoint_linestring(), lwline_locate_along(), lwline_split_by_mpoint(), lwmline_free(), lwmmpoint_to_encoded_polyline(), lwt_AddPoint(), lwt_AddPolygon(), path_to_geometry(), RTreeFree(), test_geohash(), test_lw_dist2d_pt_ptarrayarc(), test_lw_dist2d_ptarray_ptarrayarc(), test_lwline_clip(), test_lwline_clip_big(), test_lwline_crossing_bugs(), test_lwline_crossing_long_lines(), test_lwline_from_lwmpoint(), test_lwline_split_by_point_to(), test_lwmline_clip(), test_ptarray_append_point(), test_ptarray_append_ptarray(), test_ptarray_contains_point(), test_ptarray_insert_point(), test_ptarray_isccw(), test_ptarray_locate_point(), test_ptarray_scale(), test_ptarray_signed_area(), test_ptarrayarc_contains_point(), test_tree_circ_create(), and test_tree_circ_pip().

77 {
78  if ( ! line ) return;
79 
80  if ( line->bbox )
81  lwfree(line->bbox);
82  if ( line->points )
83  ptarray_free(line->points);
84  lwfree(line);
85 }
GBOX * bbox
Definition: liblwgeom.h:420
void lwfree(void *mem)
Definition: lwutil.c:244
void ptarray_free(POINTARRAY *pa)
Definition: ptarray.c:330
POINTARRAY * points
Definition: liblwgeom.h:422
Here is the call graph for this function:
Here is the caller graph for this function: