示例#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))
}
示例#2
0
文件: menus.go 项目: mpatraw/gocurse
func (menu *Menu) Free() bool {
	return isOk(C.free_menu((*C.MENU)(menu)))
}
示例#3
0
文件: menu.go 项目: zozor/gocurse
func (m *Menu) Free() error {
	if C.free_menu(m.menu) == ERR {
		return Error
	}
	return nil
}