Skip to content

Commit

Permalink
Merge branch 'branch-6-2'
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Jul 3, 2012
2 parents 10b68d8 + ca7243a commit bd4cf18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mapshape.c
Expand Up @@ -1865,7 +1865,8 @@ int msTiledSHPOpenFile(layerObj *layer)
free(tSHP);
return MS_FAILURE;
}


tSHP->shpfile->isopen = MS_FALSE; /* in case of error: do not try to close the shpfile */
tSHP->tileshpfile = NULL; /* may need this if not using a tile layer, look for malloc later */
layer->layerinfo = tSHP;

Expand Down Expand Up @@ -1899,6 +1900,7 @@ int msTiledSHPOpenFile(layerObj *layer)
__FILE__, __LINE__, sizeof(shapefileObj));
free(tSHP->shpfile);
free(tSHP);
layer->layerinfo = NULL;
return MS_FAILURE;
}

Expand Down

0 comments on commit bd4cf18

Please sign in to comment.