Commit ac5e3f53 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix mem leak found by asan

parent 865e147a
Pipeline #24748 failed with stage
in 88 minutes and 16 seconds
......@@ -53,6 +53,7 @@ void BriefHeaderStylePluginTest::shouldCreateInterface()
MessageViewer::HeaderStyleInterface *interface = plugin.createView(menu, act, new KActionCollection(this));
QVERIFY(interface);
QVERIFY(!interface->action().isEmpty());
delete interface;
}
void BriefHeaderStylePluginTest::testFormatEmpty()
......@@ -64,6 +65,7 @@ void BriefHeaderStylePluginTest::testFormatEmpty()
QCOMPARE(style->headerStrategy(), strategy);
auto aMsg = new KMime::Message();
testHeaderFile(style->format(aMsg), QStringLiteral("empty.brief"));
delete aMsg;
}
void BriefHeaderStylePluginTest::testFormat_data()
......
......@@ -54,6 +54,7 @@ void EnterpriseHeaderStylePluginTest::shouldCreateInterface()
MessageViewer::HeaderStyleInterface *interface = plugin.createView(menu, act, new KActionCollection(this));
QVERIFY(interface);
QVERIFY(!interface->action().isEmpty());
delete interface;
}
void EnterpriseHeaderStylePluginTest::testFormatEmpty()
......@@ -66,6 +67,7 @@ void EnterpriseHeaderStylePluginTest::testFormatEmpty()
auto aMsg = new KMime::Message();
QString closedDiv = style->format(aMsg) + QStringLiteral("</div>");
testHeaderFile(closedDiv, QStringLiteral("empty.enterprise"));
delete aMsg;
}
void EnterpriseHeaderStylePluginTest::testFormat_data()
......
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