void CPLFinderClean() { while( CPLPopFileFinder() != NULL ) {} while( papszFinderLocations != NULL ) CPLPopFinderLocation(); bFinderInitialized = FALSE; }
void CPLFinderClean() { FindFileTLS* pTLSData = CPLGetFindFileTLS(); if( pTLSData->bFinderInitialized ) { while( pTLSData->papszFinderLocations != NULL ) CPLPopFinderLocation(); while( CPLPopFileFinder() != NULL ) {} pTLSData->bFinderInitialized = FALSE; } }