summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-07-18 09:10:19 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-07-21 10:43:01 +0200
commitff11e4ff92036006851458cc5d935ff946618ae8 (patch)
treed09edb02a04b4639d05b7adab5bf6a9e4dbcdbbe
parent37e215f708a872b9a232247217648c2c4872d550 (diff)
CppunitTest_sw_tiledrendering: blind stack-use-after-return fix
Change-Id: I23c0324979939955f94408a452020e9776358967 (cherry picked from commit 58b592a59122144d6c5446f200dd2f48108c8909)
-rw-r--r--sw/qa/extras/tiledrendering/tiledrendering.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/qa/extras/tiledrendering/tiledrendering.cxx b/sw/qa/extras/tiledrendering/tiledrendering.cxx
index ad1c36c418d2..e0554a8c3aae 100644
--- a/sw/qa/extras/tiledrendering/tiledrendering.cxx
+++ b/sw/qa/extras/tiledrendering/tiledrendering.cxx
@@ -657,6 +657,8 @@ void SwTiledRenderingTest::testMissingInvalidation()
Scheduler::ProcessEventsToIdle();
CPPUNIT_ASSERT(aView1.m_bTilesInvalidated);
CPPUNIT_ASSERT(aView2.m_bTilesInvalidated);
+ mxComponent->dispose();
+ mxComponent.clear();
comphelper::LibreOfficeKit::setActive(false);
}
@@ -698,6 +700,8 @@ void SwTiledRenderingTest::testViewCursors()
CPPUNIT_ASSERT(aView1.m_bViewSelectionSet);
CPPUNIT_ASSERT(aView2.m_bOwnSelectionSet);
CPPUNIT_ASSERT(!aView2.m_bViewSelectionSet);
+ mxComponent->dispose();
+ mxComponent.clear();
comphelper::LibreOfficeKit::setActive(false);
}