mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
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
------------------
Commit: 1378ef4ad0
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-11-26 (Tue, 26 Nov 2013)
This commit is contained in:
@@ -66,18 +66,22 @@ CComponentsInfoBox::CComponentsInfoBox(const int x_pos, const int y_pos, const i
|
|||||||
|
|
||||||
CComponentsInfoBox::~CComponentsInfoBox()
|
CComponentsInfoBox::~CComponentsInfoBox()
|
||||||
{
|
{
|
||||||
|
#if 0 // called from base (CComponentsText) dtor
|
||||||
hide();
|
hide();
|
||||||
clearSavedScreen();
|
clearSavedScreen();
|
||||||
clearCCText();
|
clearCCText();
|
||||||
|
clear();
|
||||||
|
#endif
|
||||||
delete pic;
|
delete pic;
|
||||||
delete cctext;
|
delete cctext;
|
||||||
clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CComponentsInfoBox::initVarInfobox()
|
void CComponentsInfoBox::initVarInfobox()
|
||||||
{
|
{
|
||||||
//CComponents, CComponentsItem, CComponentsText
|
//CComponents, CComponentsItem, CComponentsText
|
||||||
|
#if 0 // called from base (CComponentsText) ctor
|
||||||
initVarText();
|
initVarText();
|
||||||
|
#endif
|
||||||
cc_item_type = CC_ITEMTYPE_TEXT_INFOBOX;
|
cc_item_type = CC_ITEMTYPE_TEXT_INFOBOX;
|
||||||
|
|
||||||
//CComponentsInfoBox
|
//CComponentsInfoBox
|
||||||
|
Reference in New Issue
Block a user