test_menu.cpp: ensure destroy footer after hide

This commit is contained in:
2020-11-26 14:14:19 +01:00
parent 976ffce7f7
commit eb5bb066b2

View File

@@ -681,8 +681,11 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
if (!footer->isPainted()) if (!footer->isPainted())
footer->paint(); footer->paint();
else else{
footer->hide(); footer->hide();
delete footer;
footer = NULL;
}
return res; return res;
} }
else if (actionKey == "scrollbar"){ else if (actionKey == "scrollbar"){