coverity#1371368 Resource leak

Change-Id: I5c35b3eaa6e9afe10096bf5013f83ff51cb870a4
This commit is contained in:
Caolán McNamara 2016-08-18 17:05:46 +01:00
parent f20090c431
commit 9b181fa48f

View File

@ -810,12 +810,13 @@ void XMLPropertiesOOoTContext_Impl::StartElement(
XMLPersAttrListTContext *pSymbolImageContext = new XMLPersAttrListTContext(
GetTransformer(), GetTransformer().GetNamespaceMap().GetQNameByKey(
XML_NAMESPACE_CHART, GetXMLToken( XML_SYMBOL_IMAGE )));
rtl::Reference<XMLTransformerContext> xSymbolImageContext(pSymbolImageContext);
OUString aAttrValue( sAttrValue );
if( GetTransformer().ConvertURIToOASIS( aAttrValue, true ))
{
pSymbolImageContext->AddAttribute( XML_NAMESPACE_XLINK, XML_HREF, aAttrValue );
pContext->AddContent( pSymbolImageContext );
pContext->AddContent(xSymbolImageContext);
}
}
break;