diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-16 09:46:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-16 12:38:47 +0200 |
commit | a0796ca91174e317cdf280a35fb6a5dad2aef66f (patch) | |
tree | c2858085db2562eb6b153852de5ba8fc816f8db9 /sc/qa/unit | |
parent | 58b0c95ad50139a62bddb348d10f94053c09cd5b (diff) |
fix leak in ScFiltersTest
Change-Id: Iff8c913b93bdd03c26f6f639922e23d33e4a7839
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115670
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/qa/unit')
-rw-r--r-- | sc/qa/unit/bugfix-test.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
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(); |