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