Esempio n. 1
0
// Free the memory allocated to the form. Forms are not automatically
// free'd by Go's garbage collection system so the memory allocated to
// it must be explicitely free'd
func (f *Form) Free() error {
	err := C.free_form(f.form)
	f = nil
	return ncursesError(syscall.Errno(err))
}
Esempio n. 2
0
func (form *Form) Free() bool {
	return isOk(C.free_form((*C.FORM)(form)))
}
Esempio n. 3
0
func (f *Form) Free() error {
	return geterror(C.free_form(f.form))
}