[geos-commits] [SCM] GEOS branch svn-3.6 updated. 7b6062ae55ad5e506b6331a64d6d911857a3a1fc

git at osgeo.org git at osgeo.org
Wed Sep 18 11:01:03 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, svn-3.6 has been updated
       via  7b6062ae55ad5e506b6331a64d6d911857a3a1fc (commit)
      from  2254b48c58e7129a7e28d6dfdaadb4bbb60abe43 (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 7b6062ae55ad5e506b6331a64d6d911857a3a1fc
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Sep 18 11:00:41 2019 -0700

    Reverse geomfactory commit
    References #714

diff --git a/NEWS b/NEWS
index aeff469..6ec1c06 100644
--- a/NEWS
+++ b/NEWS
@@ -12,7 +12,7 @@ Changes in 3.6.4
   - Static library does not contain C API (#878)
   - Prevent crash when querying empty STRtree (#730)
   - Overlay performance improvement (#986, Paul Ramsey)
-  - Allocate default geometryfactory on the stack (#714)
+
 
 Changes in 3.6.3
 2018-08-06
diff --git a/src/geom/GeometryFactory.cpp b/src/geom/GeometryFactory.cpp
index ac6e66e..0c8abfc 100644
--- a/src/geom/GeometryFactory.cpp
+++ b/src/geom/GeometryFactory.cpp
@@ -783,8 +783,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                         | 2 +-
 src/geom/GeometryFactory.cpp | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list