Fix memory leaks in tests

This commit is contained in:
Janek Bevendorff
2018-01-07 00:30:18 +01:00
committed by Jonathan White
parent ccfd7a065c
commit 72a1c65d00
4 changed files with 30 additions and 22 deletions

View File

@@ -1031,7 +1031,7 @@ Group* Kdbx3XmlReader::getGroup(const Uuid& uuid)
if (m_groups.contains(uuid)) {
return m_groups.value(uuid);
} else {
Group* group = new Group();
auto group = new Group();
group->setUpdateTimeinfo(false);
group->setUuid(uuid);
group->setParent(m_tmpParent);