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"){