[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - sw/source

Caolán McNamara caolanm at redhat.com
Fri Oct 4 05:34:05 PDT 2013


 sw/source/core/unocore/unotext.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 8c70fd938a001e30ea5e5562e9c49897df4ca026
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Oct 3 11:35:53 2013 +0100

    CID#705749 mem leak
    
    Change-Id: I8626e60d802b1c966667867d8c59ececff0a4255
    (cherry picked from commit e17c91d1ff5c39b9b541b4d1bfb291c419fc76b5)
    Reviewed-on: https://gerrit.libreoffice.org/6118
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Michael Stahl <mstahl at redhat.com>

diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx
index 2817842..b5ed1fe 100644
--- a/sw/source/core/unocore/unotext.cxx
+++ b/sw/source/core/unocore/unotext.cxx
@@ -1886,6 +1886,8 @@ void SwXText::Impl::ConvertCell(
 
         SwPaM aNewEndPaM(pCorrectedRange->aEnd, nEndLen);
         aEndCellPam = aNewEndPaM;
+
+        delete pCorrectedRange;
     }
 
     /** check the nodes between start and end


More information about the Libreoffice-commits mailing list