sc/qa/unit/bugfix-test.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+)
New commits: commit a0796ca91174e317cdf280a35fb6a5dad2aef66f Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Sun May 16 09:46:18 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sun May 16 12:38:47 2021 +0200 fix leak in ScFiltersTest Change-Id: Iff8c913b93bdd03c26f6f639922e23d33e4a7839 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115670 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sc/qa/unit/bugfix-test.cxx b/sc/qa/unit/bugfix-test.cxx index ae77ccc99c64..2f30ecb05296 100644 --- a/sc/qa/unit/bugfix-test.cxx +++ b/sc/qa/unit/bugfix-test.cxx @@ -38,6 +38,7 @@ public: ScFiltersTest(); virtual void setUp() override; + virtual void tearDown() override; void testTdf137576_Measureline(); void testTdf137216_HideCol(); @@ -769,6 +770,16 @@ void ScFiltersTest::setUp() CPPUNIT_ASSERT_MESSAGE("no calc component!", m_xCalcComponent.is()); } +void ScFiltersTest::tearDown() +{ + uno::Reference< lang::XComponent > xComp(m_xCalcComponent, uno::UNO_QUERY); + if (xComp) + xComp->dispose(); + m_xCalcComponent.clear(); + + test::BootstrapFixture::tearDown(); +} + CPPUNIT_TEST_SUITE_REGISTRATION(ScFiltersTest); CPPUNIT_PLUGIN_IMPLEMENT(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits