Commit 7b6062ae authored by Paul Ramsey's avatar Paul Ramsey

Reverse geomfactory commit

References #714
parent 2254b48c
Pipeline #83021452 failed with stage
in 6 minutes and 15 seconds
......@@ -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
......
......@@ -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*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment