PostGIS  2.5.0beta1dev-r@@SVN_REVISION@@

◆ SHPDestroyObject()

void SHPAPI_CALL SHPDestroyObject ( SHPObject psShape)

Definition at line 2182 of file shpopen.c.

References free(), SHPObject::padfM, SHPObject::padfX, SHPObject::padfY, SHPObject::padfZ, SHPObject::panPartStart, SHPObject::panPartType, and SHPAPI_CALL.

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

2184 {
2185  if( psShape == NULL )
2186  return;
2187 
2188  if( psShape->padfX != NULL )
2189  free( psShape->padfX );
2190  if( psShape->padfY != NULL )
2191  free( psShape->padfY );
2192  if( psShape->padfZ != NULL )
2193  free( psShape->padfZ );
2194  if( psShape->padfM != NULL )
2195  free( psShape->padfM );
2196 
2197  if( psShape->panPartStart != NULL )
2198  free( psShape->panPartStart );
2199  if( psShape->panPartType != NULL )
2200  free( psShape->panPartType );
2201 
2202  free( psShape );
2203 }
int * panPartStart
Definition: shapefil.h:345
double * padfX
Definition: shapefil.h:349
double * padfY
Definition: shapefil.h:350
double * padfZ
Definition: shapefil.h:351
void free(void *)
double * padfM
Definition: shapefil.h:352
int * panPartType
Definition: shapefil.h:346
Here is the call graph for this function:
Here is the caller graph for this function: