mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
gui/components/cc_frm_signalbars.cpp: fix mem leak:
initVarSigBar call from CSignalNoiseRatioBar reset pointers created by initSBItems from CSignalBar ctor
This commit is contained in:
@@ -249,7 +249,9 @@ void CSignalBar::paint(bool do_save_bg)
|
|||||||
CSignalNoiseRatioBar::CSignalNoiseRatioBar()
|
CSignalNoiseRatioBar::CSignalNoiseRatioBar()
|
||||||
{
|
{
|
||||||
initVarSnrBar();
|
initVarSnrBar();
|
||||||
|
#if 0 // called from base (CSignalBar) ctor
|
||||||
initSBItems();
|
initSBItems();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
CSignalNoiseRatioBar::CSignalNoiseRatioBar(const int& xpos, const int& ypos, const int& w, const int& h, CFrontend *frontend_ref)
|
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;
|
width = w;
|
||||||
height = h;
|
height = h;
|
||||||
|
|
||||||
|
#if 0 // called from base (CSignalBar) ctor
|
||||||
initSBItems();
|
initSBItems();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSignalNoiseRatioBar::initVarSnrBar()
|
void CSignalNoiseRatioBar::initVarSnrBar()
|
||||||
{
|
{
|
||||||
|
#if 0 // called from base (CSignalBar) ctor
|
||||||
initVarSigBar();
|
initVarSigBar();
|
||||||
|
#endif
|
||||||
sb_name = "SNR";
|
sb_name = "SNR";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user