added virtual destuctor for menu things

This commit is contained in:
2022-10-03 17:02:34 +02:00
parent a1a976be57
commit ee5bc9129a
9 changed files with 46 additions and 58 deletions
+3 -1
View File
@@ -43,6 +43,8 @@ class MenuAction {
*/
MenuAction(const char* name, MenuControl* menu);
~MenuAction();
/**
* @brief activates the entry
*/
@@ -80,7 +82,7 @@ class MenuAction {
void (*callback) () = nullptr;
bool isMenu = false;
MenuControl* menu;
MenuControl* menu = nullptr;
};
#endif // MENU_ENTRY_H