Exemple #1
0
// Free deallocates memory set aside for the menu. This must be called
// before exiting.
func (m *Menu) Free() error {
	err := C.free_menu(m.menu)
	m = nil
	return ncursesError(syscall.Errno(err))
}
Exemple #2
0
func (menu *Menu) Free() bool {
	return isOk(C.free_menu((*C.MENU)(menu)))
}
Exemple #3
0
func (m *Menu) Free() error {
	if C.free_menu(m.menu) == ERR {
		return Error
	}
	return nil
}