Lsan: fix memory leak in xmlbodyi.cxx
Change-Id: I6274abc6ca3c4452c968d0b2bb775d29fbc8971f
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user