Fix some errors detected by a little valgrind checking

This commit is contained in:
Mark Watkins 2014-10-03 17:09:35 +10:00
parent d3075f049d
commit 9849f65578
2 changed files with 8 additions and 0 deletions

View File

@ -167,6 +167,8 @@ gGraph::gGraph(QString name, gGraphView *graphview, QString title, QString units
m_enforceMinY = m_enforceMaxY = false; m_enforceMinY = m_enforceMaxY = false;
m_showTitle = true; m_showTitle = true;
m_printing = false; m_printing = false;
left = right = top = bottom = 0;
} }
gGraph::~gGraph() gGraph::~gGraph()
{ {

View File

@ -30,6 +30,9 @@ gSummaryChart::gSummaryChart(QString label, MachineType machtype)
tz_offset = d2.secsTo(d1); tz_offset = d2.secsTo(d1);
tz_hours = tz_offset / 3600.0; tz_hours = tz_offset / 3600.0;
expected_slices = 5; expected_slices = 5;
idx_end = 0;
idx_start = 0;
} }
gSummaryChart::gSummaryChart(ChannelID code, MachineType machtype) gSummaryChart::gSummaryChart(ChannelID code, MachineType machtype)
@ -47,6 +50,9 @@ gSummaryChart::gSummaryChart(ChannelID code, MachineType machtype)
addCalc(code, ST_MID, brighten(schema::channel[code].defaultColor() ,1.20f)); addCalc(code, ST_MID, brighten(schema::channel[code].defaultColor() ,1.20f));
addCalc(code, ST_90P, brighten(schema::channel[code].defaultColor() ,1.70f)); addCalc(code, ST_90P, brighten(schema::channel[code].defaultColor() ,1.70f));
addCalc(code, ST_MAX, brighten(schema::channel[code].defaultColor() ,2.30f)); addCalc(code, ST_MAX, brighten(schema::channel[code].defaultColor() ,2.30f));
idx_end = 0;
idx_start = 0;
} }
gSummaryChart::~gSummaryChart() gSummaryChart::~gSummaryChart()