COsdSetup: kill instance of osd_menu_colors

Suggested, by svenhoefer


Origin commit data
------------------
Branch: ni/coolstream
Commit: 14124c7dd6
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-12-29 (Tue, 29 Dec 2015)



------------------
This commit was generated by Migit
This commit is contained in:
2015-12-29 15:56:27 +01:00
parent 4ce48f8cfd
commit b63d9ba511

View File

@@ -514,10 +514,11 @@ int COsdSetup::showOsdSetup()
osd_menu->addIntroItems(LOCALE_MAINSETTINGS_OSD);
//item menu colors
if (osd_menu_colors == NULL){
osd_menu_colors = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_COLORS, width, MN_WIDGET_ID_OSDSETUP_MENUCOLORS);
showOsdMenueColorSetup(osd_menu_colors);
}
if (osd_menu_colors)
delete osd_menu_colors;
osd_menu_colors = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_COLORS, width, MN_WIDGET_ID_OSDSETUP_MENUCOLORS);
showOsdMenueColorSetup(osd_menu_colors);
CMenuForwarder * mf = new CMenuForwarder(LOCALE_COLORMENU_MENUCOLORS, true, NULL, osd_menu_colors, NULL, CRCInput::RC_red);
mf->setHint("", LOCALE_MENU_HINT_COLORS);
osd_menu->addItem(mf);