mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
added 2 new configure option: --with-reader --with-sax1 to allow removing
* Makefile.am SAX.c SAX2.c configure.in globals.c parser.c parserInternals.c testReader.c testSAX.c xmlIO.c xmllint.c xmlreader.c example/gjobread.c include/libxml/xmlversion.h.in: added 2 new configure option: --with-reader --with-sax1 to allow removing the reader or non-xmlReadxxx() interfaces. Daniel
This commit is contained in:
@ -2369,8 +2369,12 @@ xmlFreeParserCtxt(xmlParserCtxtPtr ctxt)
|
||||
if (ctxt->encoding != NULL) xmlFree((char *) ctxt->encoding);
|
||||
if (ctxt->extSubURI != NULL) xmlFree((char *) ctxt->extSubURI);
|
||||
if (ctxt->extSubSystem != NULL) xmlFree((char *) ctxt->extSubSystem);
|
||||
#ifdef LIBXML_SAX1_ENABLED
|
||||
if ((ctxt->sax != NULL) &&
|
||||
(ctxt->sax != (xmlSAXHandlerPtr) &xmlDefaultSAXHandler))
|
||||
#else
|
||||
if (ctxt->sax != NULL)
|
||||
#endif /* LIBXML_SAX1_ENABLED */
|
||||
xmlFree(ctxt->sax);
|
||||
if (ctxt->directory != NULL) xmlFree((char *) ctxt->directory);
|
||||
if (ctxt->vctxt.nodeTab != NULL) xmlFree(ctxt->vctxt.nodeTab);
|
||||
|
Reference in New Issue
Block a user