diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-09-30 15:51:07 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-09-30 17:34:26 +0200 |
commit | 7d754a84926196ff97b548fb5ac4490031885803 (patch) | |
tree | 343018079dad89d5fd2bec8662d7e21bf0bb21d2 /sc/qa/extras/scmodelobj.cxx | |
parent | 3da8256185696f5bfa9a4835d398558d5950b73d (diff) |
sc: ensure global variables in tests are cleared before shutdown
If the destructors run from exit handlers, they could access already
deleted globals from VCL etc. and crash.
Change-Id: I265046e95998a4384e1ce0f1f205d03c078a40a9
Diffstat (limited to 'sc/qa/extras/scmodelobj.cxx')
-rw-r--r-- | sc/qa/extras/scmodelobj.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/qa/extras/scmodelobj.cxx b/sc/qa/extras/scmodelobj.cxx index 65b2ee07af5a..bb04af931bfe 100644 --- a/sc/qa/extras/scmodelobj.cxx +++ b/sc/qa/extras/scmodelobj.cxx @@ -64,7 +64,10 @@ void ScModelObj::setUp() void ScModelObj::tearDown() { if (nTest == NUMBER_OF_TESTS) + { closeDocument(mxComponent); + mxComponent.clear(); + } UnoApiTest::tearDown(); } |