supplement to: fix some memleaks and CPU-Menu segfault

Origin commit data
------------------
Commit: de86fb2855
Author: GetAway <get-away@t-online.de>
Date: 2021-03-31 (Wed, 31 Mar 2021)
This commit is contained in:
GetAway
2021-03-31 17:38:22 +02:00
committed by vanhofen
parent 8a889af092
commit 7fd47aab5d

View File

@@ -80,7 +80,7 @@ CMiscMenue::CMiscMenue()
epg_read_now = NULL;
epg_read_frequently = NULL;
epg_dir = NULL;
epg_read_now = NULL;
epg_scan = NULL;
}
CMiscMenue::~CMiscMenue()
@@ -267,7 +267,8 @@ int CMiscMenue::showMiscSettingsMenu()
int shortcut = 1;
//misc settings
sectionsdConfigNotifier = new CSectionsdConfigNotifier();
if (sectionsdConfigNotifier == NULL)
sectionsdConfigNotifier = new CSectionsdConfigNotifier();
CMenuWidget misc_menue(LOCALE_MAINSETTINGS_HEAD, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_MISCSETUP);
misc_menue.addIntroItems(LOCALE_MISCSETTINGS_HEAD);
@@ -362,8 +363,12 @@ int CMiscMenue::showMiscSettingsMenu()
int res = misc_menue.exec(NULL, "");
delete fanNotifier;
fanNotifier = NULL;
delete sectionsdConfigNotifier;
sectionsdConfigNotifier = NULL;
delete cpuNotifier;
cpuNotifier = NULL;
return res;
}