Skip to content

Commit

Permalink
msGDALCleanup(): call GDALDestroy() with GDAL >= 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Sep 5, 2019
1 parent 393af5a commit 14a6fb9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mapgdal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

/************************************************************************/
Expand Down

0 comments on commit 14a6fb9

Please sign in to comment.