summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-10 06:59:58 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-10 06:59:58 (GMT)
commit0127678a87be802ae575ef97072f06ddc01662d4 (patch)
treed80c2767bb7f158e5f388ae43c5a8b300840ba8d
parentf16009ca8d5f281ab846a57426b90148f1fac338 (diff)
Fix mem leak
-rw-r--r--autotests/attributetest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/autotests/attributetest.cpp b/autotests/attributetest.cpp
index cf28e50..5e4ea61 100644
--- a/autotests/attributetest.cpp
+++ b/autotests/attributetest.cpp
@@ -95,6 +95,7 @@ void AttributeTest::testSerialization()
QCOMPARE(to, a->to());
QCOMPARE(cc, a->cc());
QCOMPARE(bcc, a->bcc());
+ delete a;
}
{
@@ -112,6 +113,7 @@ void AttributeTest::testSerialization()
a->deserialize(data);
QCOMPARE(mode, a->dispatchMode());
QCOMPARE(date, a->sendAfter());
+ delete a;
}
{
@@ -122,6 +124,7 @@ void AttributeTest::testSerialization()
a = new ErrorAttribute;
a->deserialize(data);
QCOMPARE(msg, a->message());
+ delete a;
}
{