[xsd-users] Question on Tree FAQ
Iain Sharp
isharp at atis.org
Tue Feb 27 08:45:24 EST 2018
Hi Folks,
A bit off topic, but can I raise a question on the tree FAQ (http://wiki.codesynthesis.com/Tree/FAQ)?
In the example routine to create an xerces Doc the code gets a raw (non-smart) pointer to a DOMImplementation with the line:
DOMImplementation* impl (
DOMImplementationRegistry::getDOMImplementation (ls_id))
However, this pointer is not explicitly released in the code. For a real application where this might be called multiple times does that pointer need to be released somewhere to avoid a memory leak?
The Xerces documentation seems unclear as to whether this is a newly created instance or just a pointer to a static instance.
Regards
Iain
More information about the xsd-users
mailing list