Opened 11 years ago
Closed 11 years ago
#5229 closed defect (duplicate)
CleanupESRIDatumMappingTable: hDatumMappingMutex needs to be reset to NULL on exit of method
Reported by: | damiandixon | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | 1.10.0 |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by )
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 (2)
comment:1 by , 11 years ago
Description: | modified (diff) |
---|
comment:2 by , 11 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Duplicate of #5090