gui/components/cc_item_infobox.cpp: fix memleak:

CComponentsInfoBox ctor -> CComponentsText ctor -> initCCText(), initVarInfobox() -> initVarText() ->
created ct_textbox = NULL, pointer lost;
comment calls in CComponentsInfoBox dtor, which already called from base CComponentsText dtor


Origin commit data
------------------
Branch: ni/coolstream
Commit: 1378ef4ad0
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-11-26 (Tue, 26 Nov 2013)



------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2013-11-26 15:35:36 +04:00
parent cd1bd4c034
commit 9933c38d12

View File

@@ -66,18 +66,22 @@ CComponentsInfoBox::CComponentsInfoBox(const int x_pos, const int y_pos, const i
CComponentsInfoBox::~CComponentsInfoBox()
{
#if 0 // called from base (CComponentsText) dtor
hide();
clearSavedScreen();
clearCCText();
clear();
#endif
delete pic;
delete cctext;
clear();
}
void CComponentsInfoBox::initVarInfobox()
{
//CComponents, CComponentsItem, CComponentsText
#if 0 // called from base (CComponentsText) ctor
initVarText();
#endif
cc_item_type = CC_ITEMTYPE_TEXT_INFOBOX;
//CComponentsInfoBox