test_menu.cpp: ensure destroy footer after hide

Origin commit data
------------------
Branch: ni/coolstream
Commit: 9b1e528c19
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-12-07 (Mon, 07 Dec 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2020-12-07 23:28:52 +01:00
committed by vanhofen
parent 21462639ad
commit fc9dd7711e

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