Beispiel #1
0
func (this *Geos) DestroyCoordSeq(coordSeq *CoordSeq) {
	if coordSeq.v != nil {
		C.GEOSCoordSeq_destroy_r(this.v, coordSeq.v)
		coordSeq.v = nil
	} else {
		panic("double free?")
	}
}
Beispiel #2
0
func cGEOSCoordSeq_destroy(s *C.GEOSCoordSequence) {
	handlemu.Lock()
	defer handlemu.Unlock()
	C.GEOSCoordSeq_destroy_r(handle, s)
}