Example #1
0
func deleteImageInput(i *ImageInput) {
	if i.ptr != nil {
		C.ImageInput_close(i.ptr)
		C.free(i.ptr)
		i.ptr = nil
	}
}
Example #2
0
// Close an image that we are totally done with.
func (i *ImageInput) Close() error {
	if !bool(C.ImageInput_close(i.ptr)) {
		return i.LastError()
	}
	return nil
}