Fix dangling info window pointer in ncurses ui
This commit is contained in:
parent
559bcdde50
commit
c94b30903d
|
@ -798,8 +798,7 @@ String make_info_box(StringView title, StringView message, CharCount max_width,
|
||||||
void NCursesUI::info_show(StringView title, StringView content,
|
void NCursesUI::info_show(StringView title, StringView content,
|
||||||
CharCoord anchor, Face face, InfoStyle style)
|
CharCoord anchor, Face face, InfoStyle style)
|
||||||
{
|
{
|
||||||
if (m_info_win)
|
info_hide();
|
||||||
delwin(m_info_win);
|
|
||||||
|
|
||||||
StringView info_box = content;
|
StringView info_box = content;
|
||||||
String fancy_info_box;
|
String fancy_info_box;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user