[Expat-discuss] Need to call XML_ParserFree ?
Fred L. Drake, Jr.
fdrake at acm.org
Thu Feb 19 22:37:09 EST 2004
On Thursday 19 February 2004 10:24 pm, Régis St-Gelais wrote:
> Do I need to call ParserFree or is it automaticaly called when the parser
> object is destroyed?
...
> XML_ParserFree(xmlParser); // Needed ????
Yes, the call to XML_ParserFree() is required. The XML_Parser type is a
pointer, not a C++ class with the needed destructor magic. Expat is strictly
a C library, not C++.
See the list of wrapper libraries for pointers to C++ interfaces to Expat:
http://www.libexpat.org/
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation
More information about the Expat-discuss
mailing list