sw/source/core/text/txtcache.hxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit d455bf3665a4539ec64c6cf6ece76437a2c4cf75
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sat Aug 27 10:21:35 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sat Aug 27 12:46:39 2022 +0200

    cid#1500408 silence Resource leak
    
    Change-Id: Ic969e0dac9d5fceb2c14daee37eee44305c15220
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138922
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/core/text/txtcache.hxx b/sw/source/core/text/txtcache.hxx
index e71be076fabb..654953e19940 100644
--- a/sw/source/core/text/txtcache.hxx
+++ b/sw/source/core/text/txtcache.hxx
@@ -41,7 +41,10 @@ public:
     void SetPara(SwParaPortion* pNew, bool bDelete)
     {
         if (!bDelete)
+        {
+            // coverity[leaked_storage] - intentional, ownership transfered
             (void)m_pLine.release();
+        }
         m_pLine.reset(pNew);
     }
 };

Reply via email to