From 060499fd26632e009e546a9ed90f821734d0665d Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 10 Apr 2002 18:38:00 +0000 Subject: [PATCH] applied patch from Mark Vakoc Daniel * libxslt/pattern.c: applied patch from Mark Vakoc Daniel --- ChangeLog | 4 ++++ libxslt/pattern.c | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 46e9e04..85fa964 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Apr 10 20:35:54 CEST 2002 Daniel Veillard + + * libxslt/pattern.c: applied patch from Mark Vakoc + Fri Mar 29 18:28:23 CET 2002 Daniel Veillard * tests/docs/Makefile.am tests/docs/bug-81.xml diff --git a/libxslt/pattern.c b/libxslt/pattern.c index 52a4d30..6314ef9 100644 --- a/libxslt/pattern.c +++ b/libxslt/pattern.c @@ -650,11 +650,15 @@ xsltTestCompMatch(xsltTransformContextPtr ctxt, xsltCompMatchPtr comp, (void *) doc; XSLT_RUNTIME_EXTRA_FREE(ctxt, select->lenExtra) = (xmlFreeFunc) xmlXPathFreeObject; - } + } else + list = newlist; } if ((list->nodesetval == NULL) || - (list->nodesetval->nodeNr <= 0)) + (list->nodesetval->nodeNr <= 0)) { + if (nocache == 1) + xmlXPathFreeObject(list); return(0); + } /* TODO: store the index and use it for the scan */ if (index == 0) { for (j = 0;j < list->nodesetval->nodeNr;j++) { -- 2.7.4