summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/qa/unit/screenshots/screenshots.cxx3
-rw-r--r--sd/qa/unit/dialogs-test.cxx7
-rw-r--r--sw/qa/unit/sw-dialogs-test.cxx8
3 files changed, 18 insertions, 0 deletions
diff --git a/sc/qa/unit/screenshots/screenshots.cxx b/sc/qa/unit/screenshots/screenshots.cxx
index 870f774b1b9f..0f1e5a21f9bf 100644
--- a/sc/qa/unit/screenshots/screenshots.cxx
+++ b/sc/qa/unit/screenshots/screenshots.cxx
@@ -282,6 +282,9 @@ void ScScreenshotTest::testOpeningModalDialogs()
/// process input file containing the UXMLDescriptions of the dialogs to dump
processDialogBatchFile("sc/qa/unit/screenshots/data/screenshots.txt");
+
+ mxComponent->dispose();
+ mxComponent.clear();
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScScreenshotTest);
diff --git a/sd/qa/unit/dialogs-test.cxx b/sd/qa/unit/dialogs-test.cxx
index 37104a4ba1dd..66a4fd63e6ee 100644
--- a/sd/qa/unit/dialogs-test.cxx
+++ b/sd/qa/unit/dialogs-test.cxx
@@ -101,6 +101,8 @@ public:
virtual void setUp() override;
+ void tearDown() override;
+
// try to open a dialog
void openAnyDialog();
@@ -138,6 +140,11 @@ void SdDialogsTest::setUp()
CPPUNIT_ASSERT(mpImpressDocument);
}
+void SdDialogsTest::tearDown()
+{
+ mxComponent->dispose();
+ ScreenshotTest::tearDown();
+}
SdAbstractDialogFactory* SdDialogsTest::getSdAbstractDialogFactory()
{
diff --git a/sw/qa/unit/sw-dialogs-test.cxx b/sw/qa/unit/sw-dialogs-test.cxx
index 1fb4f7b57ae1..a6f96d9c3211 100644
--- a/sw/qa/unit/sw-dialogs-test.cxx
+++ b/sw/qa/unit/sw-dialogs-test.cxx
@@ -43,6 +43,8 @@ public:
void setUp() override;
+ void tearDown() override;
+
// try to open a dialog
void openAnyDialog();
@@ -78,6 +80,12 @@ void SwDialogsTest::setUp()
(*fn)();
}
+void SwDialogsTest::tearDown()
+{
+ component_->dispose();
+ ScreenshotTest::tearDown();
+}
+
void SwDialogsTest::registerKnownDialogsByID(mapType& /*rKnownDialogs*/)
{
// fill map of known dialogs