Kaydet (Commit) e3bbae56 authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Caolán McNamara

cppcheck: fix memleak in lotuswordpro

Change-Id: I15b8aa6b95264d56018fbd5c22bcb0d04e43cf91
(cherry picked from commit 6e1efd48)
üst c5ceb92b
......@@ -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())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment