follow-on bits

This commit is contained in:
nhmall
2019-10-01 17:47:45 -04:00
parent 29946b551b
commit 72252d5dc6
+4 -4
View File
@@ -5326,8 +5326,7 @@ boolean setinitial, setfromfile;
tmpwin = create_nhwindow(NHW_MENU); tmpwin = create_nhwindow(NHW_MENU);
start_menu(tmpwin); start_menu(tmpwin);
if (numapes) { if (numapes) {
ape = (struct autopickup_exception *) ape = apelist;
apelist;
any = zeroany; any = zeroany;
add_menu(tmpwin, NO_GLYPH, &any, 0, 0, iflags.menu_headings, add_menu(tmpwin, NO_GLYPH, &any, 0, 0, iflags.menu_headings,
"Always pickup '<'; never pickup '>'", "Always pickup '<'; never pickup '>'",
@@ -5952,8 +5951,8 @@ const char *mapping;
ape->pattern = dupstr(text); ape->pattern = dupstr(text);
ape->grab = grab; ape->grab = grab;
ape->next = (struct autopickup_exception *) apelist; ape->next = apelist;
apelist = (struct autopickup_exception *) ape; apelist = ape;
return 1; return 1;
} }
@@ -5985,6 +5984,7 @@ void
free_autopickup_exceptions() free_autopickup_exceptions()
{ {
struct autopickup_exception *ape = apelist; struct autopickup_exception *ape = apelist;
while ((ape = apelist) != 0) { while ((ape = apelist) != 0) {
regex_free(ape->regex); regex_free(ape->regex);
free((genericptr_t) ape->pattern); free((genericptr_t) ape->pattern);