mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
test_menu.cpp: ensure destroy footer after hide
This commit is contained in:
@@ -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"){
|
||||||
|
Reference in New Issue
Block a user