include/salhelper/dynload.hxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit d8d1cc8b11821e43c59e341c8d628ddb3cfd1e9f
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Wed Dec 22 11:10:55 2021 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Wed Dec 22 13:54:21 2021 +0100

    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.gran...@collabora.co.uk>

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

Reply via email to