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 damiandixon)

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 damiandixon, 11 years ago

Description: modified (diff)

comment:2 by Even Rouault, 11 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #5090

Note: See TracTickets for help on using tickets.