mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 01:41:23 +02:00
gui/cam_menu.cpp: fix memleaks
This commit is contained in:
@@ -135,7 +135,7 @@ int CCAMMenuHandler::doMainMenu()
|
||||
} else {
|
||||
snprintf(str1, sizeof(str1), "%s %d", g_Locale->getText(LOCALE_CI_EMPTY), i);
|
||||
tempMenu = new CMenuWidget(str1, NEUTRINO_ICON_SETTINGS);
|
||||
cammenu->addItem(new CMenuForwarderNonLocalized(str1, false, NULL, tempMenu));
|
||||
cammenu->addItem(new CMenuDForwarderNonLocalized(str1, false, NULL, tempMenu));
|
||||
memset(str1,0,sizeof(str1));
|
||||
}
|
||||
if (i < (CiSlots - 1))
|
||||
@@ -166,7 +166,7 @@ int CCAMMenuHandler::doMainMenu()
|
||||
} else {
|
||||
snprintf(str1, sizeof(str1), "%s %d", g_Locale->getText(LOCALE_SC_EMPTY), i);
|
||||
tempMenu = new CMenuWidget(str1, NEUTRINO_ICON_SETTINGS);
|
||||
cammenu->addItem(new CMenuForwarderNonLocalized(str1, false, NULL, tempMenu));
|
||||
cammenu->addItem(new CMenuDForwarderNonLocalized(str1, false, NULL, tempMenu));
|
||||
memset(str1,0,sizeof(str1));
|
||||
}
|
||||
if (i < (ScNum - 1))
|
||||
|
Reference in New Issue
Block a user