// 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
}
Example #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
}
Example #3
0
func (self *PixelIterator) Destroy() {
	C.DestroyPixelIterator(self.iterator)
}