added virtual destuctor for menu things
This commit is contained in:
@@ -14,6 +14,11 @@ Menu::Menu() {
|
||||
this->selectedEntry = this->entrys.begin();
|
||||
}
|
||||
|
||||
Menu::~Menu() {
|
||||
for (std::list<MenuAction*>::iterator iter = this->entrys.begin(); iter != this->entrys.end(); iter++)
|
||||
delete *iter;
|
||||
}
|
||||
|
||||
void Menu::addEntry(MenuAction* entry) {
|
||||
this->entrys.push_back(entry);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user