summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-13 10:25:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-15 16:56:55 +0100
commit7f7d2213209dd8e23292ec5a85fbab6127824c49 (patch)
tree1c2b8cb3d93511d30ed188ba75b0d7d96a69a4d3
parent1ad97f9b803d07702d52f44b2d6ce7235ff9400a (diff)
osl_Module -> osl::Module
related coverity#1242504 Resource leak but it still leaks a dlopen handle here of course Change-Id: Iaf692e7b2753c1c0af580e236bc147dc30a39e9f
-rw-r--r--sfx2/source/appl/appinit.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx
index f5a468233864..dfbed1e1760b 100644
--- a/sfx2/source/appl/appinit.cxx
+++ b/sfx2/source/appl/appinit.cxx
@@ -178,14 +178,14 @@ OUString GetSpecialCharsForEdit(vcl::Window* pParent, const vcl::Font& rFont)
bDetermineFunction = true;
#ifndef DISABLE_DYNLOADING
- static OUString aLibName( SVLIBRARY( "cui" ) );
- oslModule handleMod = osl_loadModuleRelative(
- &thisModule, aLibName.pData, 0 );
+ osl::Module aMod;
+ aMod.loadRelative(&thisModule, "cui", 0);
// get symbol
OUString aSymbol( "GetSpecialCharsForEdit" );
- pfunc_getSpecialCharsForEdit = (PFunc_getSpecialCharsForEdit)osl_getFunctionSymbol( handleMod, aSymbol.pData );
+ pfunc_getSpecialCharsForEdit = (PFunc_getSpecialCharsForEdit)aMod.getFunctionSymbol(aSymbol);
DBG_ASSERT( pfunc_getSpecialCharsForEdit, "GetSpecialCharsForEdit() not found!" );
+ aMod.release();
#else
pfunc_getSpecialCharsForEdit = GetSpecialCharsForEdit;
#endif