Kaydet (Commit) df92f499 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Fixed crash on tear down during cppunit test.

Change-Id: I5573e554420967d8942295cabe788a9e56835ba0
üst 852f502e
...@@ -83,7 +83,10 @@ void ScEditFieldObj_Cell::setUp() ...@@ -83,7 +83,10 @@ void ScEditFieldObj_Cell::setUp()
void ScEditFieldObj_Cell::tearDown() void ScEditFieldObj_Cell::tearDown()
{ {
if (nTest == NUMBER_OF_TESTS) if (nTest == NUMBER_OF_TESTS)
{
mxField.clear();
closeDocument(mxComponent); closeDocument(mxComponent);
}
UnoApiTest::tearDown(); UnoApiTest::tearDown();
} }
......
...@@ -86,7 +86,12 @@ void ScEditFieldObj_Header::setUp() ...@@ -86,7 +86,12 @@ void ScEditFieldObj_Header::setUp()
void ScEditFieldObj_Header::tearDown() void ScEditFieldObj_Header::tearDown()
{ {
if (nTest == NUMBER_OF_TESTS) if (nTest == NUMBER_OF_TESTS)
{
// Clear these before the component is destroyed. This is important!
mxField.clear();
mxRightText.clear();
closeDocument(mxComponent); closeDocument(mxComponent);
}
UnoApiTest::tearDown(); UnoApiTest::tearDown();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment