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/scdatapilotfieldobj.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/scdatapilotfieldobj.cxx')
-rw-r--r-- | sc/qa/extras/scdatapilotfieldobj.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/qa/extras/scdatapilotfieldobj.cxx b/sc/qa/extras/scdatapilotfieldobj.cxx index df28860fc5b4..cad8aa7297aa 100644 --- a/sc/qa/extras/scdatapilotfieldobj.cxx +++ b/sc/qa/extras/scdatapilotfieldobj.cxx @@ -94,7 +94,10 @@ void ScDataPilotFieldObj::setUp() void ScDataPilotFieldObj::tearDown() { if (nTest == NUMBER_OF_TESTS) + { closeDocument(mxComponent); + mxComponent.clear(); + } CalcUnoApiTest::tearDown(); } |