# HG changeset patch
# User Daniel Veillard <veillard@src.gnome.org>
# Date 1079983660 0
#      Mon Mar 22 19:27:40 2004 +0000
# Node ID 49e1a2a97c19d801bc09dc4a731bf19a4cc211d2
# Parent  c709b0ad3f0343e73db97f3d34cc14ce0dae01da
small fix for OpenVMS fixed a leak associated to the change in reference

* libxslt/xsltconfig.h.in: small fix for OpenVMS
* libxslt/documents.c: fixed a leak associated to the change
  in reference counting when running the XML parser and using
  the document() function.
Daniel

diff --git a/ChangeLog b/ChangeLog
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Mar 22 20:25:41 CET 2004 Daniel Veillard <daniel@veillard.com>
+
+	* libxslt/xsltconfig.h.in: small fix for OpenVMS
+	* libxslt/documents.c: fixed a leak associated to the change
+	  in reference counting when running the XML parser and using
+	  the document() function.
+
 Wed Mar 17 18:49:55 HKT 2004 William Brack <wbrack@mmm.com.hk>
 
 	* xsltproc/xsltproc.c: added check for state XSLT_STATE_STOPPED
diff --git a/libxslt/documents.c b/libxslt/documents.c
--- a/libxslt/documents.c
+++ b/libxslt/documents.c
@@ -194,7 +194,6 @@
 
     if (pctxt->wellFormed) {
         doc = pctxt->myDoc;
-	xmlDictReference(pctxt->dict);
     }
     else {
         doc = NULL;
diff --git a/libxslt/xsltconfig.h.in b/libxslt/xsltconfig.h.in
--- a/libxslt/xsltconfig.h.in
+++ b/libxslt/xsltconfig.h.in
@@ -79,6 +79,8 @@
 #define XSLT_NEED_TRIO
 #endif
 #ifdef __VMS
+#define HAVE_MATH_H 1
+#define HAVE_SYS_STAT_H 1
 #ifndef XSLT_NEED_TRIO
 #define XSLT_NEED_TRIO
 #endif