Skip to content

Commit c49a14d

Browse files
committed
msGDALCleanup(): call GDALDestroy() with GDAL >= 2.4
1 parent 2607cb1 commit c49a14d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: mapgdal.c

+5
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ void msGDALCleanup( void )
113113

114114
bGDALInitialized = 0;
115115
}
116+
117+
#if GDAL_VERSION_MAJOR >= 3 || (GDAL_VERSION_MAJOR == 2 && GDAL_VERSION_MINOR == 4)
118+
/* Cleanup some GDAL global resources in particular */
119+
GDALDestroy();
120+
#endif
116121
}
117122

118123
/************************************************************************/

0 commit comments

Comments
 (0)