mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-09 20:50:43 +00:00
Fix minor cleanup bugs in the Resmed regression tests that were causing crashes.
This commit is contained in:
parent
ef26ab5e46
commit
cdeba58c5d
@ -94,14 +94,6 @@ Profile::~Profile()
|
|||||||
removeLock();
|
removeLock();
|
||||||
}
|
}
|
||||||
|
|
||||||
delete user;
|
|
||||||
delete doctor;
|
|
||||||
delete cpap;
|
|
||||||
delete oxi;
|
|
||||||
delete appearance;
|
|
||||||
delete session;
|
|
||||||
delete general;
|
|
||||||
|
|
||||||
// delete machine objects...
|
// delete machine objects...
|
||||||
for (auto & mach : m_machlist) {
|
for (auto & mach : m_machlist) {
|
||||||
delete mach;
|
delete mach;
|
||||||
@ -111,6 +103,13 @@ Profile::~Profile()
|
|||||||
delete day;
|
delete day;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete user;
|
||||||
|
delete doctor;
|
||||||
|
delete cpap;
|
||||||
|
delete oxi;
|
||||||
|
delete appearance;
|
||||||
|
delete session;
|
||||||
|
delete general;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Profile::Save(QString filename)
|
bool Profile::Save(QString filename)
|
||||||
|
@ -30,9 +30,9 @@ void ResmedTests::initTestCase(void)
|
|||||||
void ResmedTests::cleanupTestCase(void)
|
void ResmedTests::cleanupTestCase(void)
|
||||||
{
|
{
|
||||||
delete AppSetting;
|
delete AppSetting;
|
||||||
delete p_pref;
|
|
||||||
delete p_profile;
|
delete p_profile;
|
||||||
p_profile = nullptr;
|
p_profile = nullptr;
|
||||||
|
delete p_pref;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user