diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-12-13 09:17:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-13 09:34:29 +0000 |
commit | e3bbae56ad6b901053e86b8333c5e28baebac98a (patch) | |
tree | 21f3f6868fa6f2dd8d9e67afea52481486678e27 /lotuswordpro | |
parent | c5ceb92be59f805a1824f8679250564775050552 (diff) |
cppcheck: fix memleak in lotuswordpro
Change-Id: I15b8aa6b95264d56018fbd5c22bcb0d04e43cf91
(cherry picked from commit 6e1efd486dfd5a4bcff1405158c9e40e0c2b6524)
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwptablelayout.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx index 902795cf1191..735dd3edf247 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()) { |