Lsan: fix memory leak in xmlbodyi.cxx

Change-Id: I6274abc6ca3c4452c968d0b2bb775d29fbc8971f
This commit is contained in:
Markus Mohrhard
2014-05-10 08:13:39 +02:00
parent 6b28f7d3bc
commit f1fde869b4

View File

@@ -235,8 +235,8 @@ void ScXMLBodyContext::EndElement()
if (!bHadCalculationSettings)
{
// #111055#; set calculation settings defaults if there is no calculation settings element
SvXMLImportContext *pContext = new ScXMLCalculationSettingsContext( GetScImport(), XML_NAMESPACE_TABLE, GetXMLToken(XML_CALCULATION_SETTINGS), NULL );
pContext->EndElement();
ScXMLCalculationSettingsContext aContext( GetScImport(), XML_NAMESPACE_TABLE, GetXMLToken(XML_CALCULATION_SETTINGS), NULL );
aContext.EndElement();
}
ScXMLImport::MutexGuard aGuard(GetScImport());