test_menu.cpp: ensure destroy footer after hide

Origin commit data
------------------
Commit: 9b1e528c19
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-12-07 (Mon, 07 Dec 2020)
This commit is contained in:
2020-12-07 23:28:52 +01:00
committed by vanhofen
parent 301cd9f0a8
commit cbf2599731

View File

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