Commit 1ff4213e authored by William M. Brack's avatar William M. Brack
Browse files

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.
parent f7eb794c
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
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment