mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
gui/cam_menu.cpp: fix memleaks
Origin commit data
------------------
Branch: ni/coolstream
Commit: 00b0cef69c
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-11-27 (Wed, 27 Nov 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -135,7 +135,7 @@ int CCAMMenuHandler::doMainMenu()
|
|||||||
} else {
|
} else {
|
||||||
snprintf(str1, sizeof(str1), "%s %d", g_Locale->getText(LOCALE_CI_EMPTY), i);
|
snprintf(str1, sizeof(str1), "%s %d", g_Locale->getText(LOCALE_CI_EMPTY), i);
|
||||||
tempMenu = new CMenuWidget(str1, NEUTRINO_ICON_SETTINGS);
|
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));
|
memset(str1,0,sizeof(str1));
|
||||||
}
|
}
|
||||||
if (i < (CiSlots - 1))
|
if (i < (CiSlots - 1))
|
||||||
@@ -166,7 +166,7 @@ int CCAMMenuHandler::doMainMenu()
|
|||||||
} else {
|
} else {
|
||||||
snprintf(str1, sizeof(str1), "%s %d", g_Locale->getText(LOCALE_SC_EMPTY), i);
|
snprintf(str1, sizeof(str1), "%s %d", g_Locale->getText(LOCALE_SC_EMPTY), i);
|
||||||
tempMenu = new CMenuWidget(str1, NEUTRINO_ICON_SETTINGS);
|
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));
|
memset(str1,0,sizeof(str1));
|
||||||
}
|
}
|
||||||
if (i < (ScNum - 1))
|
if (i < (ScNum - 1))
|
||||||
|
Reference in New Issue
Block a user