summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-05-15 22:05:15 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-05-15 22:05:15 +0200
commit2dd1f71b24da9a10f5cdbfd4a920d5f49963c861 (patch)
tree1f6abefe28480c429486a1f1f5e0afbd7ad9d28b /sc
parent0261d4999ad930bffa26eab089af70b805f24857 (diff)
sc html test: dispose xComponent in teardown
Change-Id: If33ad8bcca2c224b6bf68a1bdaa015326c17aef8
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/extras/htmlexporttest.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/qa/extras/htmlexporttest.cxx b/sc/qa/extras/htmlexporttest.cxx
index e06525109cc9..a9c0000e37d1 100644
--- a/sc/qa/extras/htmlexporttest.cxx
+++ b/sc/qa/extras/htmlexporttest.cxx
@@ -65,6 +65,14 @@ public:
mxDesktop.set(css::frame::Desktop::create(comphelper::getComponentContext(getMultiServiceFactory())));
}
+ virtual void tearDown() SAL_OVERRIDE
+ {
+ if (mxComponent.is())
+ mxComponent->dispose();
+
+ test::BootstrapFixture::tearDown();
+ }
+
void testHtmlSkipImage()
{
htmlDocPtr pDoc;