PostGIS  2.3.7dev-r@@SVN_REVISION@@
void SHPAPI_CALL SHPDestroyObject ( SHPObject psObject)

Definition at line 2182 of file shpopen.c.

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

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 }
psShape
Definition: shpopen.c:1643
void free(void *)

Here is the call graph for this function:

Here is the caller graph for this function: