PostGIS  2.2.7dev-r@@SVN_REVISION@@
void colmap_clean ( colmap map)

Definition at line 87 of file shpcommon.c.

References colmap_t::dbffieldnames, free(), colmap_t::pgfieldnames, and colmap_t::size.

Referenced by ShpDumperDestroy(), and ShpLoaderDestroy().

88 {
89  int i;
90  if (map->size)
91  {
92  for (i = 0; i < map->size; i++)
93  {
94  if (map->pgfieldnames[i]) free(map->pgfieldnames[i]);
95  if (map->dbffieldnames[i]) free(map->dbffieldnames[i]);
96  }
97  free(map->pgfieldnames);
98  free(map->dbffieldnames);
99  }
100 }
int size
Definition: shpcommon.h:140
char ** pgfieldnames
Definition: shpcommon.h:134
char ** dbffieldnames
Definition: shpcommon.h:137
void free(void *)

Here is the call graph for this function:

Here is the caller graph for this function: