mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
src/gui/glcdsetup.cpp: fix memleak
This commit is contained in:
@@ -428,6 +428,7 @@ int GLCD_Menu::GLCD_Brightness_Settings()
|
|||||||
gbs->addItem(mf);
|
gbs->addItem(mf);
|
||||||
|
|
||||||
int res = gbs->exec(NULL, "");
|
int res = gbs->exec(NULL, "");
|
||||||
|
delete dim_time;
|
||||||
delete gbs;
|
delete gbs;
|
||||||
cGLCD::getInstance()->StandbyMode(false);
|
cGLCD::getInstance()->StandbyMode(false);
|
||||||
return res;
|
return res;
|
||||||
@@ -462,8 +463,9 @@ int GLCD_Menu::GLCD_Theme_Settings()
|
|||||||
CColorChooser* bar = new CColorChooser(LOCALE_GLCD_SELECT_BAR, &t.glcd_progressbar_color_red, &t.glcd_progressbar_color_green, &t.glcd_progressbar_color_blue, NULL, colorSetupNotifier);
|
CColorChooser* bar = new CColorChooser(LOCALE_GLCD_SELECT_BAR, &t.glcd_progressbar_color_red, &t.glcd_progressbar_color_green, &t.glcd_progressbar_color_blue, NULL, colorSetupNotifier);
|
||||||
gts->addItem(new CMenuDForwarder(LOCALE_GLCD_SELECT_BAR, true, NULL, bar));
|
gts->addItem(new CMenuDForwarder(LOCALE_GLCD_SELECT_BAR, true, NULL, bar));
|
||||||
|
|
||||||
//delete colorSetupNotifier;
|
|
||||||
int res = gts->exec(NULL, "");
|
int res = gts->exec(NULL, "");
|
||||||
|
delete colorSetupNotifier;
|
||||||
delete gts;
|
delete gts;
|
||||||
cGLCD::getInstance()->StandbyMode(false);
|
cGLCD::getInstance()->StandbyMode(false);
|
||||||
return res;
|
return res;
|
||||||
|
Reference in New Issue
Block a user