gui/components/cc_frm_signalbars.cpp: fix mem leak:

initVarSigBar call from CSignalNoiseRatioBar reset pointers created by initSBItems from CSignalBar ctor


Origin commit data
------------------
Branch: ni/coolstream
Commit: 5526bedc26
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 18:25:29 +04:00
parent 9933c38d12
commit 9f7b94dbd3

View File

@@ -249,7 +249,9 @@ void CSignalBar::paint(bool do_save_bg)
CSignalNoiseRatioBar::CSignalNoiseRatioBar()
{
initVarSnrBar();
#if 0 // called from base (CSignalBar) ctor
initSBItems();
#endif
}
CSignalNoiseRatioBar::CSignalNoiseRatioBar(const int& xpos, const int& ypos, const int& w, const int& h, CFrontend *frontend_ref)
@@ -261,12 +263,16 @@ CSignalNoiseRatioBar::CSignalNoiseRatioBar(const int& xpos, const int& ypos, con
width = w;
height = h;
#if 0 // called from base (CSignalBar) ctor
initSBItems();
#endif
}
void CSignalNoiseRatioBar::initVarSnrBar()
{
#if 0 // called from base (CSignalBar) ctor
initVarSigBar();
#endif
sb_name = "SNR";
}