mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
gui/cam_menu.cpp: fix memleaks
Origin commit data
------------------
Commit: 00b0cef69c
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-11-27 (Wed, 27 Nov 2013)
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