MCPcopy Create free account
hub / github.com/NetHack/NetHack / free_menu_line_entries

Function free_menu_line_entries

win/X11/winmenu.c:1418–1429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1416}
1417
1418static void
1419free_menu_line_entries(struct menu *mp)
1420{
1421 /* We're not freeing menu entry widgets here, but let XtDestroyWidget()
1422 on the parent widget take care of that */
1423 while (mp->base) {
1424 mp->last = mp->base;
1425 mp->base = mp->base->next;
1426 free((genericptr_t) mp->last->str);
1427 free((genericptr_t) mp->last);
1428 }
1429}
1430
1431static void
1432free_menu(struct menu *mp)

Callers 2

X11_select_menuFunction · 0.85
free_menuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected