Kaydet (Commit) f9695150 authored tarafından Caolán McNamara's avatar Caolán McNamara

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
üst 475df8db
...@@ -494,6 +494,8 @@ IMPL_LINK( SfxApplication, GlobalBasicErrorHdl_Impl, StarBASIC*, pStarBasic ) ...@@ -494,6 +494,8 @@ IMPL_LINK( SfxApplication, GlobalBasicErrorHdl_Impl, StarBASIC*, pStarBasic )
// get symbol // get symbol
basicide_handle_basic_error pSymbol = (basicide_handle_basic_error) aMod.getFunctionSymbol("basicide_handle_basic_error"); basicide_handle_basic_error pSymbol = (basicide_handle_basic_error) aMod.getFunctionSymbol("basicide_handle_basic_error");
aMod.release();
// call basicide_handle_basic_error in basctl // call basicide_handle_basic_error in basctl
long nRet = pSymbol ? pSymbol( pStarBasic ) : 0; long nRet = pSymbol ? pSymbol( pStarBasic ) : 0;
......
...@@ -855,6 +855,7 @@ OUString ChooseMacro( const Reference< XModel >& rxLimitToDocument, bool bChoose ...@@ -855,6 +855,7 @@ OUString ChooseMacro( const Reference< XModel >& rxLimitToDocument, bool bChoose
SAL_WARN_IF(!pSymbol, "sfx.doc", "SfxApplication::MacroOrganizer, no symbol!"); SAL_WARN_IF(!pSymbol, "sfx.doc", "SfxApplication::MacroOrganizer, no symbol!");
if (!pSymbol) if (!pSymbol)
return OUString(); return OUString();
aMod.release();
#else #else
#define pSymbol basicide_choose_macro #define pSymbol basicide_choose_macro
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment