diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-18 01:37:19 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-18 01:58:45 +0100 |
commit | 7511f631775365ec4477e98852a7f6df2bca333a (patch) | |
tree | ded01fd80a1df84a3731fbc7c568bf6e34ee4c61 | |
parent | 856a3a09a06fef903ce09d385a97205fdf9308fe (diff) |
coverity: fix memory leak
Change-Id: I991f0e90abfa6e772f43afd8b8aa69d3b5ce4fa0
-rw-r--r-- | lotuswordpro/source/filter/lwprowlayout.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwprowlayout.cxx b/lotuswordpro/source/filter/lwprowlayout.cxx index 1c162f8c6848..3c544eee0f17 100644 --- a/lotuswordpro/source/filter/lwprowlayout.cxx +++ b/lotuswordpro/source/filter/lwprowlayout.cxx @@ -177,14 +177,11 @@ void LwpRowLayout::Read() */ void LwpRowLayout::ConvertRow(XFTable* pXFTable,sal_uInt8 nStartCol,sal_uInt8 nEndCol) { - XFRow* pXFRow = new XFRow; - LwpTableLayout* pTableLayout = GetParentTableLayout(); LwpTable* pTable = pTableLayout->GetTable(); //calculate the connected cell position - sal_Int32 nMarkConnCell; - nMarkConnCell = FindMarkConnCell(nStartCol,nEndCol); + sal_Int32 nMarkConnCell = FindMarkConnCell(nStartCol,nEndCol); //if there is no connected cell if (nMarkConnCell == -1) @@ -195,6 +192,7 @@ void LwpRowLayout::ConvertRow(XFTable* pXFTable,sal_uInt8 nStartCol,sal_uInt8 nE //register connect row style sal_uInt16 nRowMark = crowid + GetCurMaxSpannedRows(nStartCol,nEndCol); + XFRow* pXFRow = new XFRow; RegisterCurRowStyle(pXFRow,nRowMark); //if there is connected cell |