diff --git a/geom/geos/geos.go b/geom/geos/geos.go index a3f9433..d033952 100644 --- a/geom/geos/geos.go +++ b/geom/geos/geos.go @@ -322,6 +322,7 @@ func (this *Geom) Bounds() Bounds { if geom == nil { return NilBounds } + defer C.GEOSGeom_destroy(geom) extRing := C.GEOSGetExteriorRing(geom) if extRing == nil { return NilBounds