コード例 #1
0
ファイル: form.go プロジェクト: trotha01/goncurses
// 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))
}
コード例 #2
0
ファイル: forms.go プロジェクト: mpatraw/gocurse
func (form *Form) Free() bool {
	return isOk(C.free_form((*C.FORM)(form)))
}
コード例 #3
0
ファイル: form.go プロジェクト: zozor/gocurse
func (f *Form) Free() error {
	return geterror(C.free_form(f.form))
}