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:
[CST] Focus
2013-11-27 12:23:43 +04:00
parent e0431a0723
commit 8825c88335

View File

@@ -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))