mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
gui/personalize.cpp: fix memleak, fix warnings
This commit is contained in:
@@ -290,7 +290,6 @@ int CPersonalizeGui::ShowPersonalizationMenu()
|
||||
CPINChangeWidget *pinChangeWidget = NULL;
|
||||
if (!g_settings.easymenu && show_pin_setup)
|
||||
ShowPinSetup(pMenu, pinChangeWidget);
|
||||
printf("CPersonalizeGui::ShowPinSetup: pinChangeWidget %x\n", pinChangeWidget);
|
||||
|
||||
int res;
|
||||
if (g_settings.easymenu) {
|
||||
@@ -307,7 +306,7 @@ int CPersonalizeGui::ShowPersonalizationMenu()
|
||||
const neutrino_msg_t key = (count == 0) ? CRCInput::RC_red :
|
||||
(count == 1) ? CRCInput::RC_green :
|
||||
(count == 2) ? CRCInput::RC_yellow :
|
||||
(count == 3) ? CRCInput::RC_blue : NULL;
|
||||
(count == 3) ? CRCInput::RC_blue : CRCInput::RC_nokey;
|
||||
count++;
|
||||
string itm_name = g_Locale->getText(v_item[j].locale_name);
|
||||
itm_name += " ";
|
||||
@@ -370,7 +369,7 @@ int CPersonalizeGui::ShowPersonalizationMenu()
|
||||
}
|
||||
|
||||
//init pin setup dialog
|
||||
void CPersonalizeGui::ShowPinSetup(CMenuWidget* p_widget, CPINChangeWidget *pin_widget)
|
||||
void CPersonalizeGui::ShowPinSetup(CMenuWidget* p_widget, CPINChangeWidget * &pin_widget)
|
||||
{
|
||||
pin_widget = new CPINChangeWidget(LOCALE_PERSONALIZE_PINCODE, g_settings.personalize_pincode, 4, LOCALE_PERSONALIZE_PINHINT);
|
||||
|
||||
|
@@ -164,7 +164,7 @@ class CPersonalizeGui : public CMenuTarget, public CChangeObserver, public CPINP
|
||||
int ShowPersonalizationMenu();
|
||||
int ShowMenuOptions(const int& menu);
|
||||
void ShowHelpPersonalize();
|
||||
void ShowPinSetup(CMenuWidget* p_widget, CPINChangeWidget *pin_widget);
|
||||
void ShowPinSetup(CMenuWidget* p_widget, CPINChangeWidget * &pin_widget);
|
||||
void ShowUserMenu(CMenuWidget* p_widget, std::vector<CUserMenuSetup*> &v_umenu);
|
||||
void ShowPluginMenu(CMenuWidget* p_widget);
|
||||
void ShowPreverredKeySetup(CMenuWidget* p_widget);
|
||||
|
Reference in New Issue
Block a user