ofXml: fix for potential leak