PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ stringbuffer_destroy()

void stringbuffer_destroy ( stringbuffer_t s)

Free the stringbuffer_t and all memory managed within it.

Definition at line 71 of file stringbuffer.c.

References lwfree(), and stringbuffer_t::str_start.

Referenced by lwgeom_to_kml2(), lwgeom_to_wkt(), nd_box_to_json(), nd_stats_to_json(), pointarray_to_encoded_polyline(), ShpLoaderGenerateSQLRowStatement(), ShpLoaderGetSQLFooter(), ShpLoaderGetSQLHeader(), test_stringbuffer_append(), and test_stringbuffer_aprintf().

72 {
73  if ( s->str_start ) lwfree(s->str_start);
74  if ( s ) lwfree(s);
75 }
void lwfree(void *mem)
Definition: lwutil.c:214
char * str_start
Definition: stringbuffer.h:52
Here is the call graph for this function:
Here is the caller graph for this function: