PostGIS  2.1.10dev-r@@SVN_REVISION@@
void SHPAPI_CALL SHPDestroyObject ( SHPObject psShape)

Definition at line 2183 of file shpopen.c.

References SHPObject::padfM, SHPObject::padfX, SHPObject::padfY, SHPObject::padfZ, SHPObject::panPartStart, and SHPObject::panPartType.

Referenced by if(), ShpLoaderGenerateShapeRow(), ShpLoaderGenerateSQLRowStatement(), and ShpLoaderOpenShape().

2185 {
2186  if( psShape == NULL )
2187  return;
2188 
2189  if( psShape->padfX != NULL )
2190  free( psShape->padfX );
2191  if( psShape->padfY != NULL )
2192  free( psShape->padfY );
2193  if( psShape->padfZ != NULL )
2194  free( psShape->padfZ );
2195  if( psShape->padfM != NULL )
2196  free( psShape->padfM );
2197 
2198  if( psShape->panPartStart != NULL )
2199  free( psShape->panPartStart );
2200  if( psShape->panPartType != NULL )
2201  free( psShape->panPartType );
2202 
2203  free( psShape );
2204 }
int * panPartStart
Definition: shapefil.h:346
double * padfX
Definition: shapefil.h:350
double * padfY
Definition: shapefil.h:351
double * padfZ
Definition: shapefil.h:352
double * padfM
Definition: shapefil.h:353
int * panPartType
Definition: shapefil.h:347

Here is the caller graph for this function: