PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ colmap_clean()

void colmap_clean ( colmap map)

Definition at line 167 of file shpcommon.c.

168{
169 int i;
170 if (map != NULL){
171 if (map->size)
172 {
173 for (i = 0; i < map->size; i++)
174 {
175 if (map->pgfieldnames[i]) free(map->pgfieldnames[i]);
176 if (map->dbffieldnames[i]) free(map->dbffieldnames[i]);
177 }
178 free(map->pgfieldnames);
179 free(map->dbffieldnames);
180 }
181 }
182}
void free(void *)
char ** pgfieldnames
Definition shpcommon.h:55
int size
Definition shpcommon.h:61
char ** dbffieldnames
Definition shpcommon.h:58

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

Referenced by ShpDumperDestroy(), and ShpLoaderDestroy().

Here is the call graph for this function:
Here is the caller graph for this function: