We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 164f662 + 6b7504d commit 851319fCopy full SHA for 851319f
src/core/qgsapplication.cpp
@@ -1084,6 +1084,11 @@ void QgsApplication::exitQgis()
1084
1085
delete QgsProviderRegistry::instance();
1086
1087
+ // invalidate coordinate cache while the PROJ context held by the thread-locale
1088
+ // QgsProjContextStore object is still alive. Otherwise if this later object
1089
+ // is destroyed before the static variables of the cache, we might use freed memory.
1090
+ QgsCoordinateTransform::invalidateCache();
1091
+
1092
// tear-down GDAL/OGR
1093
OGRCleanupAll();
1094
GDALDestroyDriverManager();
0 commit comments