From c94b30903d385da6519e2ce02a7aa535ed1e723f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 7 May 2015 00:34:30 +0100 Subject: [PATCH] Fix dangling info window pointer in ncurses ui --- src/ncurses_ui.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index a4ec7586..41699027 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -798,8 +798,7 @@ String make_info_box(StringView title, StringView message, CharCount max_width, void NCursesUI::info_show(StringView title, StringView content, CharCoord anchor, Face face, InfoStyle style) { - if (m_info_win) - delwin(m_info_win); + info_hide(); StringView info_box = content; String fancy_info_box;