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

Function FreeNewWindow

sys/amiga/amiwind.c:840–860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838}
839
840void
841FreeNewWindow(struct NewWindow *win)
842{
843 struct Gadget *gd, *pgd;
844 struct StringInfo *sip;
845
846 for (gd = win->FirstGadget; gd; gd = pgd) {
847 pgd = gd->NextGadget;
848 if ((ULONG) gd->UserData == 0x45f35c3d) {
849 if (gd->GadgetType == STRGADGET) {
850 sip = (struct StringInfo *) gd->SpecialInfo;
851 free(sip->Buffer);
852 free(sip);
853 } else if (gd->GadgetType == PROPGADGET) {
854 free((struct PropInfo *) gd->SpecialInfo);
855 }
856 free(gd);
857 }
858 }
859 free(win);
860}
861
862void
863bell(void)

Callers 1

dismiss_nhwindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected