1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

fixed problem caused by wrong dictionary reference count, reported on the

* xinclude.c: fixed problem caused by wrong dictionary
  reference count, reported on the list by Christopher
  Grayce.
This commit is contained in:
William M. Brack 2003-12-31 14:05:15 +00:00
parent f7eb794c14
commit 1ff4213edd
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
Wed Dec 31 22:02:37 HKT 2003 William Brack <wbrack@mmm.com.hk>
* xinclude.c: fixed problem caused by wrong dictionary
reference count, reported on the list by Christopher
Grayce.
Wed Dec 31 15:55:55 HKT 2003 William Brack <wbrack@mmm.com.hk>
* python/generator.py, python/libxml2class.txt: fixed problem

View File

@ -448,15 +448,15 @@ xmlXIncludeParseFile(xmlXIncludeCtxtPtr ctxt, const char *URL) {
xmlParseDocument(pctxt);
if (pctxt->wellFormed)
if (pctxt->wellFormed) {
ret = pctxt->myDoc;
xmlDictReference(pctxt->dict);
}
else {
ret = NULL;
xmlFreeDoc(pctxt->myDoc);
pctxt->myDoc = NULL;
}
if ((ctxt->doc != NULL) && (pctxt->dict == ctxt->doc->dict))
xmlDictReference(pctxt->dict);
xmlFreeParserCtxt(pctxt);
return(ret);
@ -1910,7 +1910,7 @@ xmlXIncludeLoadNode(xmlXIncludeCtxtPtr ctxt, int nr) {
((xmlStrEqual(children->ns->href, XINCLUDE_NS)) ||
(xmlStrEqual(children->ns->href, XINCLUDE_OLD_NS)))) {
ret = xmlXIncludeLoadFallback(ctxt, children, nr);
if (ret == 0)
if (ret == 0)
break;
}
children = children->next;