Esempio n. 1
0
func (field *Field) Free() error {
	if C.free_field((*C.FIELD)(field)) != C.OK {
		return FormsError{"Field.Free failed"}
	}
	return nil
}
Esempio n. 2
0
// 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))
}
Esempio n. 3
0
// 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))
}
Esempio n. 4
0
func (f *Field) Free() error {
	if C.free_field(f.field) != OK {
		return errors.New("Field.Free failed")
	}
	return nil
}