From 05bab75db856ca218d84cf41f77b4d12df24f20c Mon Sep 17 00:00:00 2001 From: "William M. Brack" Date: Sat, 16 Jun 2007 14:44:09 +0000 Subject: [PATCH] Fixed problem with RVT cleanup related to some exslt functions (reported * libxslt/transform.c: Fixed problem with RVT cleanup related to some exslt functions (reported on the list by Marc Adkins). svn path=/trunk/; revision=1433 --- ChangeLog | 5 +++++ libxslt/transform.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 742b282..8a3abef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Jun 16 07:42:18 PDT 2007 William Brack + + * libxslt/transform.c: Fixed problem with RVT cleanup related + to some exslt functions (reported on the list by Marc Adkins). + Wed Jun 13 13:27:48 PDT 2007 William Brack * tests/exslt/common/node-set.9.[xml,xsl,out], diff --git a/libxslt/transform.c b/libxslt/transform.c index c4ce075..1b74a80 100644 --- a/libxslt/transform.c +++ b/libxslt/transform.c @@ -3054,6 +3054,10 @@ xsltApplyXSLTTemplate(xsltTransformContextPtr ctxt, /* Need to housekeep localRVTBase */ if (tmp == ctxt->localRVTBase) ctxt->localRVTBase = curdoc; + if (tmp->prev) + tmp->prev->next = (xmlNodePtr) curdoc; + if (curdoc) + curdoc->prev = tmp->prev; xsltReleaseRVT(ctxt, tmp); } while (curdoc != oldLocalFragmentTop); } -- 2.7.4