another dictionnary/string interning fix Daniel
authorDaniel Veillard <veillard@src.gnome.org>
Wed, 27 Oct 2004 15:02:23 +0000 (15:02 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Wed, 27 Oct 2004 15:02:23 +0000 (15:02 +0000)
* libxslt/transform.c: another dictionnary/string interning fix
Daniel

ChangeLog
libxslt/transform.c

index 1f48676..1a7ca56 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Oct 27 17:00:54 CEST 2004 Daniel Veillard <daniel@veillard.com>
+
+       * libxslt/transform.c: another dictionnary/string interning fix
+
 Wed Oct 27 00:00:07 CEST 2004 Daniel Veillard <daniel@veillard.com>
 
        * libxslt/transform.c: fix to force string interning on generated
index dd5f196..d6ef747 100644 (file)
@@ -2195,6 +2195,8 @@ xsltDocumentElem(xsltTransformContextPtr ctxt, xmlNodePtr node,
            }
            if (res == NULL)
                goto error;
+           res->dict = ctxt->dict;
+           xmlDictReference(res->dict);
        } else if (xmlStrEqual(method, (const xmlChar *) "xhtml")) {
            xsltTransformError(ctxt, NULL, inst,
             "xsltDocumentElem: unsupported method xhtml\n",
@@ -2203,6 +2205,8 @@ xsltDocumentElem(xsltTransformContextPtr ctxt, xmlNodePtr node,
            res = htmlNewDocNoDtD(doctypeSystem, doctypePublic);
            if (res == NULL)
                goto error;
+           res->dict = ctxt->dict;
+           xmlDictReference(res->dict);
        } else if (xmlStrEqual(method, (const xmlChar *) "text")) {
            ctxt->type = XSLT_OUTPUT_TEXT;
            res = xmlNewDoc(style->version);