gui/vfd_setup.cpp: fix memleak - CLedControlNotifier

Origin commit data
------------------
Branch: ni/coolstream
Commit: 94486c03d1
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-05-07 (Mon, 07 May 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2012-05-07 15:58:58 +04:00
parent 5538b43d33
commit d546fc42a9

View File

@@ -164,7 +164,7 @@ void CVfdSetup::showBrightnessSetup(CMenuWidget *mn_widget)
void CVfdSetup::showLedSetup(CMenuWidget *mn_led_widget)
{
mn_led_widget->addIntroItems(LOCALE_LEDCONTROLER_MENU);
mn_led_widget->addItem(new CMenuOptionChooser(LOCALE_LEDCONTROLER_MODE_TV, &g_settings.led_tv_mode, LEDMENU_OPTIONS, LEDMENU_OPTION_COUNT, true, new CLedControlNotifier()));
mn_led_widget->addItem(new CMenuOptionChooser(LOCALE_LEDCONTROLER_MODE_TV, &g_settings.led_tv_mode, LEDMENU_OPTIONS, LEDMENU_OPTION_COUNT, true, this));
mn_led_widget->addItem(new CMenuOptionChooser(LOCALE_LEDCONTROLER_MODE_STANDBY, &g_settings.led_standby_mode, LEDMENU_OPTIONS, LEDMENU_OPTION_COUNT, true));
mn_led_widget->addItem(new CMenuOptionChooser(LOCALE_LEDCONTROLER_MODE_DEEPSTANDBY, &g_settings.led_deep_mode, LEDMENU_OPTIONS, LEDMENU_OPTION_COUNT, true));
mn_led_widget->addItem(new CMenuOptionChooser(LOCALE_LEDCONTROLER_MODE_RECORD, &g_settings.led_rec_mode, LEDMENU_OPTIONS, LEDMENU_OPTION_COUNT, true));
@@ -189,5 +189,9 @@ bool CVfdSetup::changeNotify(const neutrino_locale_t OptionName, void */* data *
{
CVFD::getInstance()->setBrightnessDeepStandby(brightnessdeepstandby);
}
else if (ARE_LOCALES_EQUAL(OptionName, LOCALE_LEDCONTROLER_MODE_TV))
{
CVFD::getInstance()->setled();
}
return true;
}