parent
7467d92e08
commit
6e3a17f7dd
@ -1,2 +1,3 @@
|
|||||||
libxml2-2.7.6.tar.gz
|
libxml2-2.7.6.tar.gz
|
||||||
/libxml2-2.7.8.tar.gz
|
/libxml2-2.7.8.tar.gz
|
||||||
|
/libxml2-2.8.0.tar.gz
|
||||||
|
@ -1,22 +0,0 @@
|
|||||||
--- a/xpath.c
|
|
||||||
+++ a/xpath.c
|
|
||||||
@@ -11763,11 +11763,16 @@ xmlXPathCompOpEvalPositionalPredicate(xmlXPathParserContextPtr ctxt,
|
|
||||||
|
|
||||||
if ((ctxt->error != XPATH_EXPRESSION_OK) || (res == -1)) {
|
|
||||||
xmlXPathObjectPtr tmp;
|
|
||||||
- /* pop the result */
|
|
||||||
+ /* pop the result if any */
|
|
||||||
tmp = valuePop(ctxt);
|
|
||||||
- xmlXPathReleaseObject(xpctxt, tmp);
|
|
||||||
- /* then pop off contextObj, which will be freed later */
|
|
||||||
- valuePop(ctxt);
|
|
||||||
+ if (tmp != contextObj) {
|
|
||||||
+ /*
|
|
||||||
+ * Free up the result
|
|
||||||
+ * then pop off contextObj, which will be freed later
|
|
||||||
+ */
|
|
||||||
+ xmlXPathReleaseObject(xpctxt, tmp);
|
|
||||||
+ valuePop(ctxt);
|
|
||||||
+ }
|
|
||||||
goto evaluation_error;
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
--- include/libxml/xmlexports.h.orig 2010-10-12 08:25:32.000000000 +0200
|
|
||||||
+++ include/libxml/xmlexports.h 2012-01-06 20:12:26.553304833 +0100
|
|
||||||
@@ -115,7 +115,7 @@
|
|
||||||
*/
|
|
||||||
#if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
|
|
||||||
#define XMLPUBFUN __declspec(dllexport)
|
|
||||||
- #define XMLPUBVAR __declspec(dllexport)
|
|
||||||
+ #define XMLPUBVAR __declspec(dllexport) extern
|
|
||||||
#else
|
|
||||||
#define XMLPUBFUN
|
|
||||||
#if !defined(LIBXML_STATIC)
|
|
Loading…
Reference in new issue