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

New commits:
commit db8edaf6cbe4fc28e40b832ecc18251f55a6993b
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sun Aug 20 16:07:53 2023 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Sun Aug 20 21:01:21 2023 +0200

    ofz#61511 Direct-leak
    
    Change-Id: Id1510fb8271a67cc924e2751d5081f54da209ae8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155869
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sw/source/core/text/pormulti.cxx b/sw/source/core/text/pormulti.cxx
index 0f00db0d8c26..bccc8f6b02c2 100644
--- a/sw/source/core/text/pormulti.cxx
+++ b/sw/source/core/text/pormulti.cxx
@@ -2309,6 +2309,9 @@ bool SwTextFormatter::BuildMultiPortion( SwTextFormatInfo 
&rInf,
                 // we try to keep our ruby portion together
                 lcl_TruncateMultiPortion( rMulti, rInf, nStartIdx );
                 pTmp = nullptr;
+                // A follow field portion may still be waiting. If nobody wants
+                // it, we delete it.
+                delete pNextSecond;
             }
         }
         else if( rMulti.HasRotation() )

Reply via email to