diff --git a/tests/dbusmenuexportertest.cpp b/tests/dbusmenuexportertest.cpp index a81945f..f0a64d1 100644 --- a/tests/dbusmenuexportertest.cpp +++ b/tests/dbusmenuexportertest.cpp @@ -494,6 +494,7 @@ void DBusMenuExporterTest::testMenuShortcut() QCOMPARE(shortcut.toKeySequence(), action->shortcut()); } } + delete exporter; } void DBusMenuExporterTest::testGetGroupProperties() @@ -530,6 +531,7 @@ void DBusMenuExporterTest::testGetGroupProperties() DBusMenuItem item = groupPropertiesList.takeFirst(); QCOMPARE(item.properties.value("label").toString(), action->text()); } + delete exporter; } void DBusMenuExporterTest::testActivateAction() @@ -565,6 +567,7 @@ void DBusMenuExporterTest::testActivateAction() QCOMPARE(spy.count(), 2); QCOMPARE(spy.takeFirst().at(0).toInt(), id1); QCOMPARE(spy.takeFirst().at(0).toInt(), id2); + delete exporter; } static int trackCount(QMenu* menu) @@ -602,6 +605,7 @@ void DBusMenuExporterTest::testTrackActionsOnlyOnce() QTest::qWait(500); QCOMPARE(trackCount(subMenu), 1); + delete exporter; } // If desktop does not want icon in menus, check we do not export them @@ -721,6 +725,7 @@ void DBusMenuExporterTest::testSeparatorCollapsing() // Check it matches QCOMPARE(output, expected); + delete exporter; } static void checkPropertiesChangedArgs(const QVariantList& args, const QString& name, const QVariant& value) @@ -765,6 +770,7 @@ void DBusMenuExporterTest::testSetStatus() QTest::qWait(500); QCOMPARE(spy.count(), 1); checkPropertiesChangedArgs(spy.takeFirst(), "Status", "normal"); + delete exporter; } void DBusMenuExporterTest::testGetIconDataProperty() @@ -815,3 +821,4 @@ void DBusMenuExporterTest::testGetIconDataProperty() QCOMPARE(result, img); } +#include "dbusmenuexportertest.moc" diff --git a/tests/dbusmenuimportertest.cpp b/tests/dbusmenuimportertest.cpp index 1d32d07..6bb6b46 100644 --- a/tests/dbusmenuimportertest.cpp +++ b/tests/dbusmenuimportertest.cpp @@ -246,6 +246,7 @@ void DBusMenuImporterTest::testActionsAreDeletedWhenImporterIs() //qDebug() << child; QVERIFY(child.isNull()); } + delete exporter; } void DBusMenuImporterTest::testIconData() @@ -312,6 +313,9 @@ void DBusMenuImporterTest::testInvisibleItem() action->setVisible(true); QTest::qWait(500); QVERIFY(outputAction->isVisible()); + + delete importer; + delete exporter; } void DBusMenuImporterTest::testDisabledItem() @@ -340,3 +344,4 @@ void DBusMenuImporterTest::testDisabledItem() QVERIFY(outputAction->isEnabled()); } +#include "dbusmenuimportertest.moc"