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