mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-12 16:03:36 +02:00
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:
@@ -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