]> granicus.if.org Git - postgis/commitdiff
Do not reference face object after free
authorSandro Santilli <strk@keybit.net>
Sat, 29 Aug 2015 09:19:59 +0000 (09:19 +0000)
committerSandro Santilli <strk@keybit.net>
Sat, 29 Aug 2015 09:19:59 +0000 (09:19 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@14026 b70326c6-7e19-0410-871a-916f4a2858ee

NEWS
liblwgeom/lwgeom_topo.c

diff --git a/NEWS b/NEWS
index 48bb57ebd7aa7ab16d4460539b59cb2913ab1625..1c452a7a686df2cb565538e05334692157837e83 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -92,9 +92,9 @@ PostGIS 2.2.0
   - #2652, Add --upgrade-path switch to run_test.pl
   - #2754, sfcgal wrapped as an extension
   - #2227, Simplification with Visvalingam-Whyatt algorithm
-           ST_SimplifyVW, ST_SetEffectiveArea (Nicklas Avèn)
+           ST_SimplifyVW, ST_SetEffectiveArea (Nicklas Avén)
   - Functions to encode and decode TWKB
-    ST_AsTWKB, ST_GeomFromTWKB (Paul Ramsey / Nicklas Avèn / CartoDB)
+    ST_AsTWKB, ST_GeomFromTWKB (Paul Ramsey / Nicklas Avén / CartoDB)
 
  * Enhancements *
 
@@ -787,7 +787,7 @@ PostGIS 2.0.0
   - Topology support improved, documented, testing, bug fixes 
     (Sandro Santilli / Faunalia for RT-SIGTA, Regina Obe, Andrea Peri,
      Jose Carlos Martinez Llari)
-  - 3D relationship support functions (Nicklas Avèn)
+  - 3D relationship support functions (Nicklas Avén)
     ST_3DDistance, ST_3DClosestPoint, ST_3DIntersects, 
     ST_3DShortestLine
   - ST_Split (Sandro Santilli / Faunalia for RT-SIGTA)
index 77f71c266ffabdf83353620fb78e2acc9231d8e7..bd770b5d43cd9133099e1002ea5a4248a60ed8e6 100644 (file)
@@ -5628,12 +5628,12 @@ lwt_AddPolygon(LWT_TOPOLOGY* topo, LWPOLY* poly, double tol, int* nfaces)
       fg = lwt_GetFaceGeometry( topo, f->face_id );
       if ( ! fg )
       {
+        i = f->face_id; /* so we can destroy faces */
         GEOSPreparedGeom_destroy(ppoly);
         GEOSGeom_destroy(polyg);
         lwfree(ids);
         _lwt_release_faces(faces, nfacesinbox);
-        lwerror("Could not get geometry of face %" LWTFMT_ELEMID,
-                f->face_id);
+        lwerror("Could not get geometry of face %" LWTFMT_ELEMID, i);
         return NULL;
       }
       /* check if a point on this face's surface is covered by our polygon */