From 5bff4b016c4b44f4123e0e6a4fd4c0c4dc0cfa2d Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 12 Nov 2014 23:57:07 +0100 Subject: sw: delete global SwAutoCorrect instance to avoid crash... ... in exit handlers because VCL and the SolarMutex is gone. (regression from 4404b718bdb547cb9b7b17c73a53574724cdeeb7) Change-Id: I9f33b2cb8c87f7137e3ba0ae033879861f9fe11b --- sw/source/uibase/app/swmodule.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sw') diff --git a/sw/source/uibase/app/swmodule.cxx b/sw/source/uibase/app/swmodule.cxx index ecee71758f05..e3817b1061b5 100644 --- a/sw/source/uibase/app/swmodule.cxx +++ b/sw/source/uibase/app/swmodule.cxx @@ -227,6 +227,9 @@ SwModule::~SwModule() { delete pErrorHdl; EndListening( *SfxGetpApp() ); + + SvxAutoCorrCfg& rACfg = SvxAutoCorrCfg::Get(); + rACfg.SetAutoCorrect(0); // delete SwAutCorrect before exit handlers } void SwModule::CreateLngSvcEvtListener() -- cgit v1.2.3