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

◆ SHPDestroyObject()

void SHPAPI_CALL SHPDestroyObject ( SHPObject psObject)

Definition at line 2652 of file shpopen.c.

2654{
2655 if( psShape == SHPLIB_NULLPTR )
2656 return;
2657
2658 if( psShape->bFastModeReadObject )
2659 {
2660 psShape->bFastModeReadObject = FALSE;
2661 return;
2662 }
2663
2664 if( psShape->padfX != SHPLIB_NULLPTR )
2665 free( psShape->padfX );
2666 if( psShape->padfY != SHPLIB_NULLPTR )
2667 free( psShape->padfY );
2668 if( psShape->padfZ != SHPLIB_NULLPTR )
2669 free( psShape->padfZ );
2670 if( psShape->padfM != SHPLIB_NULLPTR )
2671 free( psShape->padfM );
2672
2673 if( psShape->panPartStart != SHPLIB_NULLPTR )
2674 free( psShape->panPartStart );
2675 if( psShape->panPartType != SHPLIB_NULLPTR )
2676 free( psShape->panPartType );
2677
2678 free( psShape );
2679}
void free(void *)
else psShape
Definition shpopen.c:2066
#define FALSE
Definition shpopen.c:58
#define SHPLIB_NULLPTR
Definition shpopen.c:101

References FALSE, free(), psShape, and SHPLIB_NULLPTR.

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

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