widget: reset some object vars to NULL, only for sure

This commit is contained in:
2020-01-05 21:17:59 +01:00
parent 6c5461d582
commit 890d04b0ca
5 changed files with 14 additions and 8 deletions

View File

@@ -314,7 +314,7 @@ class CMenuDForwarder : public CMenuForwarder
const char * const IconName = NULL, const char * const IconName_Info_right = NULL)
: CMenuForwarder(Text, Active, Option, Target, ActionKey, DirectKey, IconName, IconName_Info_right) { };
~CMenuDForwarder() { delete jumpTarget; }
~CMenuDForwarder() { delete jumpTarget; jumpTarget = NULL;}
};
class CAbstractMenuOptionChooser : public CMenuItem