diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-12-10 15:34:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-12-10 17:44:42 +0100 |
commit | 6494fba15ea93283b625bf6bdb4666709f22439f (patch) | |
tree | 4100d27f6a360959734bb0299d4ac7862a62d1ac /extensions | |
parent | 3392f567be8d52804b187b0bced47204ef38fa3c (diff) |
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.cxx | 4 |
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; } } |