From eb5bb066b23bac11078fe9a195ac144c3ef42cae Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 26 Nov 2020 14:14:19 +0100 Subject: [PATCH] test_menu.cpp: ensure destroy footer after hide --- src/gui/test_menu.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/test_menu.cpp b/src/gui/test_menu.cpp index 6bd79e233..0ec58664e 100644 --- a/src/gui/test_menu.cpp +++ b/src/gui/test_menu.cpp @@ -681,8 +681,11 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey) if (!footer->isPainted()) footer->paint(); - else + else{ footer->hide(); + delete footer; + footer = NULL; + } return res; } else if (actionKey == "scrollbar"){