PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ SHPDestroyObject()

void SHPAPI_CALL SHPDestroyObject ( SHPObject psObject)

Definition at line 2182 of file shpopen.c.

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

References free(), and psShape.

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

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