Commit 1bd1fc06 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix mem leak found by ASAN

parent 78963af4
...@@ -53,6 +53,8 @@ void TestLearnerStorage::testLearnerStorage() ...@@ -53,6 +53,8 @@ void TestLearnerStorage::testLearnerStorage()
QCOMPARE(loadedLearner.first()->name(), tmpLearner.name()); QCOMPARE(loadedLearner.first()->name(), tmpLearner.name());
QCOMPARE(loadedLearner.first()->goals().size(), 1); QCOMPARE(loadedLearner.first()->goals().size(), 1);
QCOMPARE(loadedLearner.first()->goals().first()->identifier(), tmpGoal.identifier()); QCOMPARE(loadedLearner.first()->goals().first()->identifier(), tmpGoal.identifier());
qDeleteAll(loadedGoals);
qDeleteAll(loadedLearner);
} }
void TestLearnerStorage::testProgressLogStorage() void TestLearnerStorage::testProgressLogStorage()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment