[geos-commits] [SCM] GEOS branch 3.7 updated. c1959da6cdd5f53a29dc80b3800f0e04a9854235

git at osgeo.org git at osgeo.org
Wed Sep 18 11:02:09 PDT 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, 3.7 has been updated
       via  c1959da6cdd5f53a29dc80b3800f0e04a9854235 (commit)
      from  8b57c70979e2c1cd4f6c756f6aa08180406eb313 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c1959da6cdd5f53a29dc80b3800f0e04a9854235
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Sep 18 11:01:51 2019 -0700

    Reverse geomfactory patch
    References #714

diff --git a/NEWS b/NEWS
index ef4b624..3e0dee5 100644
--- a/NEWS
+++ b/NEWS
@@ -4,7 +4,6 @@ Changes in 3.7.3dev
 - Bug fixes / improvements
   - Union performance regression (#867, Paul Ramsey)
   - Overlay performance improvement (#986, Paul Ramsey)
-  - Allocate default geometryfactory on the stack (#714)
 
 
 Changes in 3.7.2
diff --git a/src/geom/GeometryFactory.cpp b/src/geom/GeometryFactory.cpp
index a6bfa83..896b457 100644
--- a/src/geom/GeometryFactory.cpp
+++ b/src/geom/GeometryFactory.cpp
@@ -784,8 +784,8 @@ GeometryFactory::destroyGeometry(Geometry *g) const
 const GeometryFactory*
 GeometryFactory::getDefaultInstance()
 {
-	static GeometryFactory defInstance;
-	return &defInstance;
+	static GeometryFactory* defInstance = new GeometryFactory();
+	return defInstance;
 }
 
 /*private*/

-----------------------------------------------------------------------

Summary of changes:
 NEWS                         | 1 -
 src/geom/GeometryFactory.cpp | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list