lotuswordpro/source/filter/lwprowlayout.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 852f469ba97caf01641b654f2e37dd9a290a6bce
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Feb 3 21:14:18 2020 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Feb 4 09:48:31 2020 +0100

    ofz#20507 hold by reference
    
    Change-Id: Ia684d8f796ed7bf6f82b056c6445c4cd92260504
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87923
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/lotuswordpro/source/filter/lwprowlayout.cxx 
b/lotuswordpro/source/filter/lwprowlayout.cxx
index 9760dd7a5e24..7a564bdd5849 100644
--- a/lotuswordpro/source/filter/lwprowlayout.cxx
+++ b/lotuswordpro/source/filter/lwprowlayout.cxx
@@ -225,9 +225,9 @@ void LwpRowLayout::ConvertRow(rtl::Reference<XFTable> const 
& pXFTable,sal_uInt8
         {
             xXFCell.set(new XFCell);
             xXFCell->SetColumnSpaned(nColMark-i);
-            XFTable* pSubTable = new XFTable;
-            pTableLayout->ConvertTable(pSubTable,crowid,nRowMark,i,nColMark);
-            xXFCell->Add(pSubTable);
+            rtl::Reference<XFTable> xSubTable(new XFTable);
+            pTableLayout->ConvertTable(xSubTable,crowid,nRowMark,i,nColMark);
+            xXFCell->Add(xSubTable.get());
             i = nColMark;
         }
         else
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to