PostGIS  2.1.10dev-r@@SVN_REVISION@@
void ReleasePolygons ( Ring **  polys,
int  npolys 
)

Definition at line 597 of file shp2pgsql-core.c.

References struct_ring::list, and struct_ring::next.

Referenced by GeneratePolygonGeometry().

598 {
599  int pi;
600 
601  /* Release all memory */
602  for (pi = 0; pi < npolys; pi++)
603  {
604  Ring *Poly, *temp;
605  Poly = polys[pi];
606  while (Poly != NULL)
607  {
608  temp = Poly;
609  Poly = Poly->next;
610  free(temp->list);
611  free(temp);
612  }
613  }
614 
615  free(polys);
616 }
struct struct_ring * next
Point * list

Here is the caller graph for this function: