// Free must be called on all menu items to avoid memory leaks func (mi *MenuItem) Free() { C.free(unsafe.Pointer(C.item_name(mi.item))) C.free_item(mi.item) }
func (item *Item) Free() bool { return isOk(C.free_item((*C.ITEM)(item))) }
func (i *Item) Free() error { if C.free_item(i.item) == ERR { return Error } return nil }