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:04 +02:00
parent 2db6f20700
commit 201874a85a

View File

@@ -322,6 +322,7 @@ curses_del_nhwin(winid wid)
wid);
return;
}
delwin(nhwins[wid].curwin);
nhwins[wid].curwin = NULL;
nhwins[wid].nhwin = -1;
}