applied patch from Mike Hommey fixing 2 erroneous xmlFree() and adding a
authorDaniel Veillard <veillard@src.gnome.org>
Thu, 12 Oct 2006 12:40:52 +0000 (12:40 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Thu, 12 Oct 2006 12:40:52 +0000 (12:40 +0000)
* libxslt/preproc.c: applied patch from Mike Hommey fixing 2
  erroneous xmlFree() and adding a message on an unsupported feature
Daniel

ChangeLog
libxslt/preproc.c

index b625c98..ace4211 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Oct 12 14:39:37 CEST 2006 Daniel Veillard <daniel@veillard.com>
+
+       * libxslt/preproc.c: applied patch from Mike Hommey fixing 2 
+         erroneous xmlFree() and adding a message on an unsupported feature
+
 Wed Oct 11 23:16:10 CEST 2006 Daniel Veillard <daniel@veillard.com>
 
        * python/libxslt-python-api.xml: applied fix for accessor functions
index 3b4116c..2842370 100644 (file)
@@ -1441,14 +1441,14 @@ xsltNumberComp(xsltStylesheetPtr style, xmlNodePtr cur) {
            xsltTransformError(NULL, style, cur,
                         "xsl:number : invalid value %s for level\n", prop);
            if (style != NULL) style->warnings++;
-           xmlFree((void *)(prop));
        }
     }
     
     prop = xsltGetCNsProp(style, cur, (const xmlChar *)"lang", XSLT_NAMESPACE);
     if (prop != NULL) {
+           xsltTransformError(NULL, style, cur,
+                "xsl:number : lang attribute not implemented\n");
        XSLT_TODO; /* xsl:number lang attribute */
-       xmlFree((void *)prop);
     }
     
     prop = xsltGetCNsProp(style, cur, (const xmlChar *)"letter-value", XSLT_NAMESPACE);