ofz#942 fix leak

Change-Id: I52f69e9dc4c47764c1b3773b1c41b2f04807703e
This commit is contained in:
Caolán McNamara
2017-03-25 21:07:57 +00:00
parent a73f5a4223
commit 26262de4d5

View File

@@ -7597,13 +7597,14 @@ SdrObject* SdrPowerPointImport::CreateTable( SdrObject* pGroup, sal_uInt32* pTab
aColumns.insert( aSnapRect.Left() );
}
}
sdr::table::SdrTableObj* pTable = new sdr::table::SdrTableObj( pSdrModel );
pTable->uno_lock();
Reference< XTable > xTable( pTable->getTable() );
if (aRows.empty())
return pRet;
sdr::table::SdrTableObj* pTable = new sdr::table::SdrTableObj( pSdrModel );
pTable->uno_lock();
Reference< XTable > xTable( pTable->getTable() );
try
{
CreateTableRows( xTable->getRows(), aRows, pGroup->GetSnapRect().Bottom() );