Removed memory leak in geos2postgis polygon conversion.

git-svn-id: http://svn.osgeo.org/postgis/trunk@1407 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2005-02-18 08:42:52 +00:00
parent a9ebea2780
commit 0942e0dc46

View file

@ -2133,6 +2133,8 @@ lwpoly_from_geometry(Geometry *g, char want3d)
ptoff+=npoints;
}
GEOSdeleteChar( (char*) pts);
// Construct LWPOLY
poly = lwpoly_construct(SRID, NULL, nrings+1, rings);