diff options
-rw-r--r-- | basic/source/sbx/sbxbase.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/appl/app.cxx | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/basic/source/sbx/sbxbase.cxx b/basic/source/sbx/sbxbase.cxx index c9ec487f5ebe..0a88f5412a66 100644 --- a/basic/source/sbx/sbxbase.cxx +++ b/basic/source/sbx/sbxbase.cxx @@ -19,6 +19,7 @@ #include <tools/debug.hxx> #include <tools/stream.hxx> +#include <vcl/svapp.hxx> #include <basic/sbx.hxx> #include <basic/sbxfac.hxx> @@ -41,7 +42,10 @@ SbxAppData::SbxAppData() SbxAppData::~SbxAppData() { + SolarMutexGuard g; + delete pBasicFormater; + aFacs.clear(); } SbxBase::SbxBase() diff --git a/sfx2/source/appl/app.cxx b/sfx2/source/appl/app.cxx index 0eeb327f7db5..7c3b8884b56a 100644 --- a/sfx2/source/appl/app.cxx +++ b/sfx2/source/appl/app.cxx @@ -232,11 +232,12 @@ SfxApplication::~SfxApplication() // delete global options SvtViewOptions::ReleaseOptions(); + if ( !pAppData_Impl->bDowning ) + Deinitialize(); + #if HAVE_FEATURE_SCRIPTING delete pBasic; #endif - if ( !pAppData_Impl->bDowning ) - Deinitialize(); delete pAppData_Impl; pApp = 0; |