[Libreoffice-commits] core.git: sw/qa

Miklos Vajna vmiklos at collabora.co.uk
Mon Jul 18 07:12:01 UTC 2016


 sw/qa/extras/tiledrendering/tiledrendering.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 58b592a59122144d6c5446f200dd2f48108c8909
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Mon Jul 18 09:10:19 2016 +0200

    CppunitTest_sw_tiledrendering: blind stack-use-after-return fix
    
    Change-Id: I23c0324979939955f94408a452020e9776358967

diff --git a/sw/qa/extras/tiledrendering/tiledrendering.cxx b/sw/qa/extras/tiledrendering/tiledrendering.cxx
index 8c56355..b4ccff4 100644
--- a/sw/qa/extras/tiledrendering/tiledrendering.cxx
+++ b/sw/qa/extras/tiledrendering/tiledrendering.cxx
@@ -656,6 +656,8 @@ void SwTiledRenderingTest::testMissingInvalidation()
     Scheduler::ProcessEventsToIdle();
     CPPUNIT_ASSERT(aView1.m_bTilesInvalidated);
     CPPUNIT_ASSERT(aView2.m_bTilesInvalidated);
+    mxComponent->dispose();
+    mxComponent.clear();
 
     comphelper::LibreOfficeKit::setActive(false);
 }
@@ -697,6 +699,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);
 }


More information about the Libreoffice-commits mailing list