NWT_GRCDataset::~NWT_GRCDataset() { delete poColorTable; CSLDestroy( papszCategories ); FlushCache(); pGrd->fp = NULL; // this prevents nwtCloseGrid from closing the fp nwtCloseGrid( pGrd ); if( fp != NULL ) VSIFCloseL( fp ); CPLFree( pszProjection ); }
NWT_GRDDataset::~NWT_GRDDataset() { FlushCache(); pGrd->fp = NULL; // this prevents nwtCloseGrid from closing the fp nwtCloseGrid( pGrd ); if( fp != NULL ) VSIFCloseL( fp ); if( pszProjection != NULL ) { CPLFree( pszProjection ); } /*if( poCT != NULL ) delete poCT;*/ }