Opened 11 years ago

Last modified 11 years ago

#5229 closed defect

CleanupESRIDatumMappingTable: hDatumMappingMutex needs to be reset to NULL on exit of method — at Initial Version

Reported by: damiandixon Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: 1.10.0
Severity: normal Keywords:
Cc:

Description

In the method CleanupESRIDatumMappingTable() (file ogr\ogr_srs_esri.cpp) the variable hDatumMappingMutex needs to be reset to NULL after it has been destroyed.

CPLDestroyMutex(hDatumMappingMutex); hDatumMappingMutex = NULL; Add this line

The issue is if you call

GDALAllRegister()

then call

GDALDestroyDriverManager()

You can not call GDALAllRegister() again because the variable is now in an undefined state. On Windows this causes an infinite loop.

Change History (0)

Note: See TracTickets for help on using tickets.