Пример #1
0
// Deallocates resources associated with a PixelIterator.
func (pi *PixelIterator) Destroy() {
	if pi.pi == nil {
		return
	}
	pi.pi = C.DestroyPixelIterator(pi.pi)
	relinquishMemory(unsafe.Pointer(pi.pi))
	pi.pi = nil
}
Пример #2
0
// Deallocates resources associated with a PixelIterator.
func (pi *PixelIterator) Destroy() {
	if pi.pi == nil {
		return
	}
	pi.pi = C.DestroyPixelIterator(pi.pi)
	C.free(unsafe.Pointer(pi.pi))
	pi.pi = nil
}
Пример #3
0
func (self *PixelIterator) Destroy() {
	C.DestroyPixelIterator(self.iterator)
}