func (field *Field) Free() error { if C.free_field((*C.FIELD)(field)) != C.OK { return FormsError{"Field.Free failed"} } return nil }
// Free field's allocated memory. This must be called to prevent memory // leaks func (f *Field) Free() error { err := C.free_field(f.field) f = nil return ncursesError(syscall.Errno(err)) }
// Free field's allocated memory. This must be called to prevent memory // leaks func (f *Field) Free() error { err := C.free_field((*C.FIELD)(f)) f = nil return ncursesError(syscall.Errno(err)) }
func (f *Field) Free() error { if C.free_field(f.field) != OK { return errors.New("Field.Free failed") } return nil }