1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

fixing a leak detected by testapi in xmlDOMWrapAdoptNode, and fixing

* testapi.c tree.c: fixing a leak detected by testapi in
  xmlDOMWrapAdoptNode, and fixing another side effect in testapi
  seems to pass tests fine now.
* include/libxml/parser.h parser.c: xmlStopParser() is no more limited
  to push mode
* error.c: remove a warning
* runtest.c xmllint.c: avoid compilation errors if only some parts
  of the library are compiled in.
Daniel
This commit is contained in:
Daniel Veillard
2005-07-03 22:48:50 +00:00
parent 7e33dbaa0e
commit 39e5c89016
9 changed files with 73 additions and 31 deletions

View File

@@ -514,7 +514,7 @@ __xmlRaiseError(xmlStructuredErrorFunc schannel,
if ((node->doc != NULL) && (node->doc->URL != NULL)) {
baseptr = node;
file = node->doc->URL;
file = (const char *) node->doc->URL;
}
for (i = 0;
((i < 10) && (node != NULL) && (node->type != XML_ELEMENT_NODE));