Skip to content
Permalink
Browse files

msGDALCleanup(): call GDALDestroy() with GDAL >= 2.4

  • Loading branch information...
rouault committed Sep 5, 2019
1 parent 2607cb1 commit c49a14d16b37c6509fc4a0a4b8cfc74899f69d4e
Showing with 5 additions and 0 deletions.
  1. +5 −0 mapgdal.c
@@ -113,6 +113,11 @@ void msGDALCleanup( void )

bGDALInitialized = 0;
}

#if GDAL_VERSION_MAJOR >= 3 || (GDAL_VERSION_MAJOR == 2 && GDAL_VERSION_MINOR == 4)
/* Cleanup some GDAL global resources in particular */
GDALDestroy();
#endif
}

/************************************************************************/

0 comments on commit c49a14d

Please sign in to comment.
You can’t perform that action at this time.