Kaydet (Commit) 7511f631 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

coverity: fix memory leak

Change-Id: I991f0e90abfa6e772f43afd8b8aa69d3b5ce4fa0
üst 856a3a09
...@@ -177,14 +177,11 @@ void LwpRowLayout::Read() ...@@ -177,14 +177,11 @@ void LwpRowLayout::Read()
*/ */
void LwpRowLayout::ConvertRow(XFTable* pXFTable,sal_uInt8 nStartCol,sal_uInt8 nEndCol) void LwpRowLayout::ConvertRow(XFTable* pXFTable,sal_uInt8 nStartCol,sal_uInt8 nEndCol)
{ {
XFRow* pXFRow = new XFRow;
LwpTableLayout* pTableLayout = GetParentTableLayout(); LwpTableLayout* pTableLayout = GetParentTableLayout();
LwpTable* pTable = pTableLayout->GetTable(); LwpTable* pTable = pTableLayout->GetTable();
//calculate the connected cell position //calculate the connected cell position
sal_Int32 nMarkConnCell; sal_Int32 nMarkConnCell = FindMarkConnCell(nStartCol,nEndCol);
nMarkConnCell = FindMarkConnCell(nStartCol,nEndCol);
//if there is no connected cell //if there is no connected cell
if (nMarkConnCell == -1) if (nMarkConnCell == -1)
...@@ -195,6 +192,7 @@ void LwpRowLayout::ConvertRow(XFTable* pXFTable,sal_uInt8 nStartCol,sal_uInt8 nE ...@@ -195,6 +192,7 @@ void LwpRowLayout::ConvertRow(XFTable* pXFTable,sal_uInt8 nStartCol,sal_uInt8 nE
//register connect row style //register connect row style
sal_uInt16 nRowMark = crowid + GetCurMaxSpannedRows(nStartCol,nEndCol); sal_uInt16 nRowMark = crowid + GetCurMaxSpannedRows(nStartCol,nEndCol);
XFRow* pXFRow = new XFRow;
RegisterCurRowStyle(pXFRow,nRowMark); RegisterCurRowStyle(pXFRow,nRowMark);
//if there is connected cell //if there is connected cell
......
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