diff --git a/ChangeLog b/ChangeLog index b36f7ca6..c6938eeb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sat Sep 27 01:25:39 CEST 2003 Daniel Veillard + + * parser.c: William's change allowed to spot a nasty bug in xmlDoRead + if the result is well formed that ctxt->myDoc is not NULL and uses + the context dictionnary. + Fri Sep 26 21:09:34 CEST 2003 Daniel Veillard * parser.c: other patches from William Brack to avoid diff --git a/parser.c b/parser.c index 039e071e..501b55ea 100644 --- a/parser.c +++ b/parser.c @@ -12149,7 +12149,9 @@ xmlDoRead(xmlParserCtxtPtr ctxt, const char *URL, const char *encoding, else { ret = NULL; if (ctxt->myDoc != NULL) { - ctxt->myDoc->dict = NULL; + if ((ctxt->dictNames) && + (ctxt->myDoc->dict == ctxt->dict)) + xmlDictReference(ctxt->dict); xmlFreeDoc(ctxt->myDoc); } }