mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
supplement to: fix some memleaks and CPU-Menu segfault
This commit is contained in:
@@ -80,7 +80,7 @@ CMiscMenue::CMiscMenue()
|
|||||||
epg_read_now = NULL;
|
epg_read_now = NULL;
|
||||||
epg_read_frequently = NULL;
|
epg_read_frequently = NULL;
|
||||||
epg_dir = NULL;
|
epg_dir = NULL;
|
||||||
epg_read_now = NULL;
|
epg_scan = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
CMiscMenue::~CMiscMenue()
|
CMiscMenue::~CMiscMenue()
|
||||||
@@ -269,7 +269,8 @@ int CMiscMenue::showMiscSettingsMenu()
|
|||||||
int shortcut = 1;
|
int shortcut = 1;
|
||||||
|
|
||||||
//misc settings
|
//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);
|
CMenuWidget misc_menue(LOCALE_MAINSETTINGS_HEAD, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_MISCSETUP);
|
||||||
|
|
||||||
misc_menue.addIntroItems(LOCALE_MISCSETTINGS_HEAD);
|
misc_menue.addIntroItems(LOCALE_MISCSETTINGS_HEAD);
|
||||||
@@ -354,8 +355,12 @@ int CMiscMenue::showMiscSettingsMenu()
|
|||||||
int res = misc_menue.exec(NULL, "");
|
int res = misc_menue.exec(NULL, "");
|
||||||
|
|
||||||
delete fanNotifier;
|
delete fanNotifier;
|
||||||
|
fanNotifier = NULL;
|
||||||
delete sectionsdConfigNotifier;
|
delete sectionsdConfigNotifier;
|
||||||
|
sectionsdConfigNotifier = NULL;
|
||||||
delete cpuNotifier;
|
delete cpuNotifier;
|
||||||
|
cpuNotifier = NULL;
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user