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

Fix other mem leak

parent c2ae2ff8
Pipeline #24751 failed with stage
in 60 minutes and 30 seconds
......@@ -30,7 +30,9 @@ void ExternalComposerPluginEditorTest::shouldHaveDefaultValue()
{
ExternalComposerPluginEditor plugin;
QVERIFY(plugin.hasConfigureDialog());
QVERIFY(plugin.createInterface(nullptr));
auto interface = plugin.createInterface(nullptr);
QVERIFY(interface);
delete interface;
}
QTEST_MAIN(ExternalComposerPluginEditorTest)
......@@ -50,6 +50,7 @@ void StandardsHeaderStylePluginTest::shouldCreateInterface()
MessageViewer::HeaderStyleInterface *interface = plugin.createView(menu, act, new KActionCollection(this));
QVERIFY(interface);
QVERIFY(!interface->action().isEmpty());
delete interface;
}
QTEST_MAIN(StandardsHeaderStylePluginTest)
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