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

Origin commit data
------------------
Commit: 1d7ce79142
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-01-05 (Sun, 05 Jan 2020)
This commit is contained in:
2020-01-05 22:22:22 +01:00
committed by vanhofen
parent ed5ffde6e7
commit 0391717c46
5 changed files with 14 additions and 8 deletions

View File

@@ -312,7 +312,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