mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 11:40:42 +00:00
Add delete (obj) to clean up memory leaks
This commit is contained in:
parent
ccba19b3d2
commit
0fd25f2f4e
@ -328,11 +328,11 @@ void init()
|
|||||||
CPAP_BrokenSummary = schema::channel["BrokenSummary"].id();
|
CPAP_BrokenSummary = schema::channel["BrokenSummary"].id();
|
||||||
CPAP_BrokenWaveform = schema::channel["BrokenWaveform"].id();
|
CPAP_BrokenWaveform = schema::channel["BrokenWaveform"].id();
|
||||||
|
|
||||||
// <channel id="0x111e" class="data" name="TestChan1" details="Debugging Channel #2" label="Test #1" unit="" color="pink"/>
|
// <channel id="0x111e" class="data" name="TestChan1" details="Debugging Channel #1" label="Test #1" unit="" color="pink"/>
|
||||||
// <channel id="0x111f" class="data" name="TestChan2" details="Debugging Channel #2" label="Test #2" unit="" color="blue"/>
|
// <channel id="0x111f" class="data" name="TestChan2" details="Debugging Channel #2" label="Test #2" unit="" color="blue"/>
|
||||||
|
|
||||||
schema::channel.add(GRP_CPAP, ch=new Channel(CPAP_Test1 = 0x111e, DATA, MT_CPAP, SESSION, STR_GRAPH_TestChan1, QObject::tr("Debugging channel #1"), QObject::tr("Top secret internal stuff you're not supposed to see ;)"), QObject::tr("Test #1"), QString(), INTEGER, QColor("pink")));
|
// schema::channel.add(GRP_CPAP, ch=new Channel(CPAP_Test1 = 0x111e, DATA, MT_CPAP, SESSION, STR_GRAPH_TestChan1, QObject::tr("Debugging channel #1"), QObject::tr("Top secret internal stuff you're not supposed to see ;)"), QObject::tr("Test #1"), QString(), INTEGER, QColor("pink")));
|
||||||
schema::channel.add(GRP_CPAP, ch=new Channel(CPAP_Test2 = 0x111f, DATA, MT_CPAP, SESSION, STR_GRAPH_TestChan2, QObject::tr("Debugging channel #2"), QObject::tr("Top secret internal stuff you're not supposed to see ;)"), QObject::tr("Test #2"), QString(), INTEGER, Qt::blue));
|
// schema::channel.add(GRP_CPAP, ch=new Channel(CPAP_Test2 = 0x111f, DATA, MT_CPAP, SESSION, STR_GRAPH_TestChan2, QObject::tr("Debugging channel #2"), QObject::tr("Top secret internal stuff you're not supposed to see ;)"), QObject::tr("Test #2"), QString(), INTEGER, Qt::blue));
|
||||||
|
|
||||||
RMS9_E01 = schema::channel["RMS9_E01"].id();
|
RMS9_E01 = schema::channel["RMS9_E01"].id();
|
||||||
RMS9_E02 = schema::channel["RMS9_E02"].id();
|
RMS9_E02 = schema::channel["RMS9_E02"].id();
|
||||||
|
@ -523,6 +523,7 @@ void Overview::on_rangeCombo_activated(int index)
|
|||||||
day->OpenSummary(); // This can be slow if summary needs to be updated to new version
|
day->OpenSummary(); // This can be slow if summary needs to be updated to new version
|
||||||
}
|
}
|
||||||
progress->close();
|
progress->close();
|
||||||
|
delete progress;
|
||||||
|
|
||||||
// first and last dates for ANY machine type
|
// first and last dates for ANY machine type
|
||||||
setRange(start, end);
|
setRange(start, end);
|
||||||
|
@ -519,6 +519,7 @@ void Statistics::updateRXChanges()
|
|||||||
|
|
||||||
// Close the progress bar
|
// Close the progress bar
|
||||||
progress->close();
|
progress->close();
|
||||||
|
delete progress;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user