[mapserver-commits] [mapserver/mapserver] 40c8ff: msOGRWriteFromQuery(): use OSRRelease() instead of...
GitHub
noreply at github.com
Fri Mar 4 02:52:22 PST 2016
Branch: refs/heads/branch-7-0
Home: https://github.com/mapserver/mapserver
Commit: 40c8ffddb0a6c9defa05bcf13dd25767c9c8db8b
https://github.com/mapserver/mapserver/commit/40c8ffddb0a6c9defa05bcf13dd25767c9c8db8b
Author: Even Rouault <even.rouault at spatialys.com>
Date: 2016-03-04 (Fri, 04 Mar 2016)
Changed paths:
M mapogroutput.c
Log Message:
-----------
msOGRWriteFromQuery(): use OSRRelease() instead of OSRDestroySpatialReference()
The CreateLayer() implementation of some OGR drivers might potentially only
increase the reference counter on the passed SRS instead of doing a full clone.
Consequently using OSRDestroySpatialReference() is not appropriate, as it will
destroy the SRS even if it is referenced by the OGR layer.
More information about the mapserver-commits
mailing list