Curses: delete curses window
When NetHack deletes a window, also free the curses window data.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user