summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-11 16:31:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-11 16:40:00 +0100
commitf9695150942341a755a43996d4639eb623d7640b (patch)
treef5f7e9e97f47ed52ad04924fb61628e6b5d995cb /sfx2
parent475df8db916a7bf16afd3e82808e0b59cbf71d5f (diff)
too risky to dlclose basctl once opened
e.g. use macro organizer for the first time and launch a macro, user event with handle to basctl function posted Change-Id: I2f0f4a7536f071926ea1bd6994f8178fbd4a796f
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/app.cxx2
-rw-r--r--sfx2/source/appl/appserv.cxx1
2 files changed, 3 insertions, 0 deletions
diff --git a/sfx2/source/appl/app.cxx b/sfx2/source/appl/app.cxx
index 78054f4f00e4..83794e8ef17f 100644
--- a/sfx2/source/appl/app.cxx
+++ b/sfx2/source/appl/app.cxx
@@ -494,6 +494,8 @@ IMPL_LINK( SfxApplication, GlobalBasicErrorHdl_Impl, StarBASIC*, pStarBasic )
// get symbol
basicide_handle_basic_error pSymbol = (basicide_handle_basic_error) aMod.getFunctionSymbol("basicide_handle_basic_error");
+ aMod.release();
+
// call basicide_handle_basic_error in basctl
long nRet = pSymbol ? pSymbol( pStarBasic ) : 0;
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index 0db333fe5953..7d0f4c65eb52 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -855,6 +855,7 @@ OUString ChooseMacro( const Reference< XModel >& rxLimitToDocument, bool bChoose
SAL_WARN_IF(!pSymbol, "sfx.doc", "SfxApplication::MacroOrganizer, no symbol!");
if (!pSymbol)
return OUString();
+ aMod.release();
#else
#define pSymbol basicide_choose_macro
#endif