Commit 0edfa159 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix some mem leak found by asan

parent ff29ef24
Pipeline #24799 failed with stage
in 72 minutes and 1 second
......@@ -54,6 +54,7 @@ void FancyHeaderStylePluginTest::shouldCreateInterface()
MessageViewer::HeaderStyleInterface *interface = plugin.createView(menu, act, new KActionCollection(this));
QVERIFY(interface);
QVERIFY(!interface->action().isEmpty());
delete interface;
}
void FancyHeaderStylePluginTest::testFormatEmpty()
......@@ -65,6 +66,7 @@ void FancyHeaderStylePluginTest::testFormatEmpty()
QCOMPARE(style->headerStrategy(), strategy);
auto aMsg = new KMime::Message();
testHeaderFile(style->format(aMsg), QStringLiteral("empty.fancy"));
delete aMsg;
}
void FancyHeaderStylePluginTest::testFormat_data()
......
......@@ -50,6 +50,7 @@ void LongHeaderStylePluginTest::shouldCreateInterface()
MessageViewer::HeaderStyleInterface *interface = plugin.createView(menu, act, new KActionCollection(this));
QVERIFY(interface);
QVERIFY(!interface->action().isEmpty());
delete interface;
}
QTEST_MAIN(LongHeaderStylePluginTest)
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