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

Function destroy_fancy_status

win/X11/winstat.c:2578–2592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2576}
2577
2578static void
2579destroy_fancy_status(struct xwindow *wp)
2580{
2581 int i;
2582 struct X_status_value *sv;
2583
2584 if (!wp->keep_window)
2585 XtDestroyWidget(wp->w), wp->w = (Widget) 0;
2586
2587 for (i = 0, sv = shown_stats; i < NUM_STATS; i++, sv++)
2588 if (sv->type == SV_LABEL) {
2589 free((genericptr_t) sv->name);
2590 sv->name = 0;
2591 }
2592}
2593
2594/*winstat.c*/

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected