coverity#1371368 Resource leak
Change-Id: I5c35b3eaa6e9afe10096bf5013f83ff51cb870a4
This commit is contained in:
@@ -810,12 +810,13 @@ void XMLPropertiesOOoTContext_Impl::StartElement(
|
|||||||
XMLPersAttrListTContext *pSymbolImageContext = new XMLPersAttrListTContext(
|
XMLPersAttrListTContext *pSymbolImageContext = new XMLPersAttrListTContext(
|
||||||
GetTransformer(), GetTransformer().GetNamespaceMap().GetQNameByKey(
|
GetTransformer(), GetTransformer().GetNamespaceMap().GetQNameByKey(
|
||||||
XML_NAMESPACE_CHART, GetXMLToken( XML_SYMBOL_IMAGE )));
|
XML_NAMESPACE_CHART, GetXMLToken( XML_SYMBOL_IMAGE )));
|
||||||
|
rtl::Reference<XMLTransformerContext> xSymbolImageContext(pSymbolImageContext);
|
||||||
|
|
||||||
OUString aAttrValue( sAttrValue );
|
OUString aAttrValue( sAttrValue );
|
||||||
if( GetTransformer().ConvertURIToOASIS( aAttrValue, true ))
|
if( GetTransformer().ConvertURIToOASIS( aAttrValue, true ))
|
||||||
{
|
{
|
||||||
pSymbolImageContext->AddAttribute( XML_NAMESPACE_XLINK, XML_HREF, aAttrValue );
|
pSymbolImageContext->AddAttribute( XML_NAMESPACE_XLINK, XML_HREF, aAttrValue );
|
||||||
pContext->AddContent( pSymbolImageContext );
|
pContext->AddContent(xSymbolImageContext);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user