[Libreoffice-commits] core.git: lotuswordpro/source
Julien Nabet
serval2412 at yahoo.fr
Sun Dec 13 00:17:57 PST 2015
lotuswordpro/source/filter/lwptablelayout.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 6e1efd486dfd5a4bcff1405158c9e40e0c2b6524
Author: Julien Nabet <serval2412 at 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())
{
More information about the Libreoffice-commits
mailing list