Curses: delete curses window

When NetHack deletes a window, also free the curses window data.
This commit is contained in:
Pasi Kallinen
2023-03-14 11:16:13 +02:00
parent 2db6f20700
commit 201874a85a
+1
View File
@@ -322,6 +322,7 @@ curses_del_nhwin(winid wid)
wid); wid);
return; return;
} }
delwin(nhwins[wid].curwin);
nhwins[wid].curwin = NULL; nhwins[wid].curwin = NULL;
nhwins[wid].nhwin = -1; nhwins[wid].nhwin = -1;
} }