summaryrefslogtreecommitdiff
path: root/include/salhelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-12-22 11:10:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-22 13:54:21 +0100
commitd8d1cc8b11821e43c59e341c8d628ddb3cfd1e9f (patch)
treeffc8d5f6b6335d3338e29d9ac4be60c070bb6cb1 /include/salhelper
parente88fbc883fd7fc06c324819bae35cb8d3a80ab77 (diff)
revert part of "loplugin:flatten in filter..include"
revert part of commit a3bc9dc51104d01ec203b8e2d5767dd055a42b58 accidentally included (was an early workaround when the plugin was misbehaving) Change-Id: I12d06b7c4d6387b674b4d0c69914732094d20f5e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127302 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/salhelper')
-rw-r--r--include/salhelper/dynload.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/salhelper/dynload.hxx b/include/salhelper/dynload.hxx
index c360b0ce0688..b4ae693ea894 100644
--- a/include/salhelper/dynload.hxx
+++ b/include/salhelper/dynload.hxx
@@ -150,6 +150,9 @@ public:
/// Destructor, decrease the reference count and unload the library if it is the last instance.
~ODynamicLoader()
{
+ if( m_pLoader )
+ if (m_pLoader->release()==0)
+ m_pStaticLoader = NULL;
}
/// Assign operator