fixed a serious problem in XInclude #129021 Daniel

* xinclude.c: fixed a serious problem in XInclude #129021
Daniel
This commit is contained in:
Daniel Veillard 2003-12-21 23:36:39 +00:00
parent 87ab1c1298
commit 2d2f155224
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Mon Dec 22 00:34:09 CET 2003 Daniel Veillard <daniel@veillard.com>
* xinclude.c: fixed a serious problem in XInclude #129021
Sun Dec 21 13:59:54 CET 2003 Daniel Veillard <daniel@veillard.com>
* parser.c: fixed bug #129489, propagation of parsing flags

View File

@ -455,7 +455,7 @@ xmlXIncludeParseFile(xmlXIncludeCtxtPtr ctxt, const char *URL) {
xmlFreeDoc(pctxt->myDoc);
pctxt->myDoc = NULL;
}
if ((pctxt->myDoc != NULL) && (pctxt->dict == pctxt->myDoc->dict))
if ((ctxt->doc != NULL) && (pctxt->dict == ctxt->doc->dict))
xmlDictReference(pctxt->dict);
xmlFreeParserCtxt(pctxt);