Kaydet (Commit) 79fa84cc authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#705828 Dereference before null check

Change-Id: Ie76ee86f6ae48012c92a3f06ad1372f126f1ea29
üst ab419e3d
......@@ -266,9 +266,7 @@ ScHTMLLayoutParser::~ScHTMLLayoutParser()
delete pS->pLocalColOffset;
delete pS;
}
if ( pLocalColOffset )
delete pLocalColOffset;
if ( pColOffset )
delete pColOffset;
if ( pTables )
{
......@@ -1349,7 +1347,6 @@ void ScHTMLLayoutParser::TableOff( ImportInfo* pInfo )
nColOffsetStart = pS->nColOffsetStart;
bFirstRow = pS->bFirstRow;
xLockedList = pS->xLockedList;
if ( pLocalColOffset )
delete pLocalColOffset;
pLocalColOffset = pS->pLocalColOffset;
delete pActEntry;
......@@ -1370,7 +1367,6 @@ void ScHTMLLayoutParser::TableOff( ImportInfo* pInfo )
{
ScHTMLTableStackEntry* pS = aTableStack.top();
aTableStack.pop();
if ( pLocalColOffset )
delete pLocalColOffset;
pLocalColOffset = pS->pLocalColOffset;
delete pS;
......
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