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/sceditfieldobj-cell.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/sceditfieldobj-cell.cxx')
-rw-r--r-- | sc/qa/extras/sceditfieldobj-cell.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/qa/extras/sceditfieldobj-cell.cxx b/sc/qa/extras/sceditfieldobj-cell.cxx index 39ea41c94fe3..878210b7ab34 100644 --- a/sc/qa/extras/sceditfieldobj-cell.cxx +++ b/sc/qa/extras/sceditfieldobj-cell.cxx @@ -87,6 +87,7 @@ void ScEditFieldObj_Cell::tearDown() { mxField.clear(); closeDocument(mxComponent); + mxComponent.clear(); } CalcUnoApiTest::tearDown(); |