paulsmith / gogeos

Go library for spatial data operations and geometric algorithms (Go bindings for GEOS)
http://paulsmith.github.io/gogeos/
MIT License
280 stars 79 forks source link

geom: avoid racing with GC when calling Coords() on shell/hole #18

Open pmezard opened 7 years ago

pmezard commented 7 years ago

The problem is twofold:

The fix is similar to the one suggested in #11. There are probably a lot of places where either previous conditions are required, I have not checked all the code.

Note: this change the minimum required Go version to 1.7. I tried to play build tag games to have empty versions of the runtime.KeepAlive call, and failed.

Fixes #8