Example #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))
}
Example #2
0
func (menu *Menu) Free() bool {
	return isOk(C.free_menu((*C.MENU)(menu)))
}
Example #3
0
func (m *Menu) Free() error {
	if C.free_menu(m.menu) == ERR {
		return Error
	}
	return nil
}