fixed problem with cached RVT's, bug #378766
authorWilliam M. Brack <wbrack@src.gnome.org>
Sat, 25 Nov 2006 03:48:02 +0000 (03:48 +0000)
committerWilliam M. Brack <wbrack@src.gnome.org>
Sat, 25 Nov 2006 03:48:02 +0000 (03:48 +0000)
* libxslt/variables.c: fixed problem with cached RVT's,
  bug #378766

ChangeLog
libxslt/variables.c

index 0d4ff51..4781835 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Nov 25 11:48:28 HKT 2006 William Brack <wbrack@mmm.com.hk>
+
+       * libxslt/variables.c: fixed problem with cached RVT's,
+         bug #378766
+
 Thu Nov 23 17:49:31 CET 2006 Daniel Veillard <daniel@veillard.com>
 
        * libxslt/transform.c: applied patch from Mike Hommey about saving
index 064d91d..b9c966f 100644 (file)
@@ -75,7 +75,9 @@ xsltCreateRVT(xsltTransformContextPtr ctxt)
     if (ctxt->cache->RVT) {
        container = ctxt->cache->RVT;
        ctxt->cache->RVT = (xmlDocPtr) container->next;
+       /* clear the internal pointers */
        container->next = NULL;
+       container->prev = NULL;
        if (ctxt->cache->nbRVT > 0)
            ctxt->cache->nbRVT--;
 #ifdef XSLT_DEBUG_PROFILE_CACHE