lotuswordpro/source/filter/lwptablelayout.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 6e1efd486dfd5a4bcff1405158c9e40e0c2b6524
Author: Julien Nabet <serval2...@yahoo.fr>
Date:   Sun Dec 13 09:17:02 2015 +0100

    cppcheck: fix memleak in lotuswordpro
    
    Change-Id: I15b8aa6b95264d56018fbd5c22bcb0d04e43cf91

diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx 
b/lotuswordpro/source/filter/lwptablelayout.cxx
index 902795c..735dd3e 100644
--- a/lotuswordpro/source/filter/lwptablelayout.cxx
+++ b/lotuswordpro/source/filter/lwptablelayout.cxx
@@ -580,7 +580,10 @@ void LwpTableLayout::RegisterColumns()
     {
         auto nColId = pColumnLayout->GetColumnID();
         if (nColId >= nCols)
+        {
+            delete [] pWidthCalculated;
             throw std::range_error("corrupt LwpTableLayout");
+        }
         m_pColumns[nColId] = pColumnLayout;
         if (!pColumnLayout->IsJustifiable())
         {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to