mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user