Skip to content

Commit

Permalink
msOGRFileClose: drop useless OGR mutex that could cause a dead-lock w…
Browse files Browse the repository at this point in the history
…ith tileindex (#4869)
  • Loading branch information
rouault committed Feb 19, 2014
1 parent 7358a06 commit 51f98b0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mapogr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1261,16 +1261,13 @@ static int msOGRFileClose(layerObj *layer, msOGRFileInfo *psInfo )
// Make sure we aren't holding the lock when the callback may need it.
RELEASE_OGR_LOCK;
msConnPoolRelease( layer, psInfo->hDS );
ACQUIRE_OGR_LOCK;

// Free current tile if there is one.
if( psInfo->poCurTile != NULL )
msOGRFileClose( layer, psInfo->poCurTile );

CPLFree(psInfo);

RELEASE_OGR_LOCK;

return MS_SUCCESS;
}

Expand Down

0 comments on commit 51f98b0

Please sign in to comment.