Exemplo 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))
}
Exemplo n.º 2
0
func (form *Form) Free() bool {
	return isOk(C.free_form((*C.FORM)(form)))
}
Exemplo n.º 3
0
func (f *Form) Free() error {
	return geterror(C.free_form(f.form))
}