func deleteImageInput(i *ImageInput) { if i.ptr != nil { C.ImageInput_close(i.ptr) C.free(i.ptr) i.ptr = nil } }
// 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 }