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

◆ SHPDestroyObject()

void SHPAPI_CALL SHPDestroyObject ( SHPObject psObject)

Definition at line 2641 of file shpopen.c.

2643{
2644 if( psShape == SHPLIB_NULLPTR )
2645 return;
2646
2647 if( psShape->bFastModeReadObject )
2648 {
2649 psShape->bFastModeReadObject = FALSE;
2650 return;
2651 }
2652
2653 if( psShape->padfX != SHPLIB_NULLPTR )
2654 free( psShape->padfX );
2655 if( psShape->padfY != SHPLIB_NULLPTR )
2656 free( psShape->padfY );
2657 if( psShape->padfZ != SHPLIB_NULLPTR )
2658 free( psShape->padfZ );
2659 if( psShape->padfM != SHPLIB_NULLPTR )
2660 free( psShape->padfM );
2661
2662 if( psShape->panPartStart != SHPLIB_NULLPTR )
2663 free( psShape->panPartStart );
2664 if( psShape->panPartType != SHPLIB_NULLPTR )
2665 free( psShape->panPartType );
2666
2667 free( psShape );
2668}
void free(void *)
else psShape
Definition shpopen.c:2055
#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: