Skip to content
Permalink
Browse files

msOGRFileClose: drop useless OGR mutex that could cause a dead-lock w…

…ith tileindex (#4869)
  • Loading branch information
rouault committed Feb 19, 2014
1 parent 6676cea commit bab4738bc6e1826a00aca09d375d3aa5c0c01513
Showing with 0 additions and 3 deletions.
  1. +0 −3 mapogr.cpp
@@ -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;
}

0 comments on commit bab4738

Please sign in to comment.
You can’t perform that action at this time.