summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-12-10 15:34:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-12-10 17:44:42 +0100
commit6494fba15ea93283b625bf6bdb4666709f22439f (patch)
tree4100d27f6a360959734bb0299d4ac7862a62d1ac /extensions
parenttdf#146048: detect UTF-16 without BOM (diff)
downloadcore-6494fba15ea93283b625bf6bdb4666709f22439f.tar.gz
core-6494fba15ea93283b625bf6bdb4666709f22439f.zip
more ofz#42182 oss-build failure
Change-Id: I8960db6c013911df26b35623814c5586ce8c3d00 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126642 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/scanner/sane.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/source/scanner/sane.cxx b/extensions/source/scanner/sane.cxx
index 20bce0be68d0..de03e1158775 100644
--- a/extensions/source/scanner/sane.cxx
+++ b/extensions/source/scanner/sane.cxx
@@ -169,8 +169,8 @@ Sane::~Sane()
void Sane::Init()
{
- OUString sSaneLibName( "libsane" SAL_DLLEXTENSION );
#ifndef DISABLE_DYNLOADING
+ OUString sSaneLibName( "libsane" SAL_DLLEXTENSION );
pSaneLib = osl_loadModule( sSaneLibName.pData, SAL_LOADMODULE_LAZY );
if( ! pSaneLib )
{
@@ -244,7 +244,9 @@ void Sane::DeInit()
if( pSaneLib )
{
p_exit();
+#ifndef DISABLE_DYNLOADING
osl_unloadModule( pSaneLib );
+#endif
pSaneLib = nullptr;
}
}