Kaydet (Commit) 6e1efd48 authored tarafından Julien Nabet's avatar Julien Nabet

cppcheck: fix memleak in lotuswordpro

Change-Id: I15b8aa6b95264d56018fbd5c22bcb0d04e43cf91
üst bb2ead8b
......@@ -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