Fix dangling info window pointer in ncurses ui

This commit is contained in:
Maxime Coste 2015-05-07 00:34:30 +01:00
parent 559bcdde50
commit c94b30903d

View File

@ -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;