From 5d28a5de83c4d809d864f57ee97cc9da11b1e43e Mon Sep 17 00:00:00 2001 From: randomdan Date: Fri, 11 Feb 2011 13:04:20 +0000 Subject: Fix free function in xslRows for xmlXPathObject --- project2/xslRows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project2/xslRows.cpp b/project2/xslRows.cpp index f15f38f..62b0f74 100644 --- a/project2/xslRows.cpp +++ b/project2/xslRows.cpp @@ -111,7 +111,7 @@ XslRows::execute(const RowProcessor * rp) const BOOST_FOREACH(const Namespaces::value_type & ns, namespaces) { xmlXPathRegisterNs(xpathCtx.get(), BAD_CAST ns.first.c_str(), BAD_CAST ns.second.c_str()); } - xmlXPathObjectSPtr xpathObj = xmlXPathObjectSPtr(xmlXPathEvalExpression(fv->root(), xpathCtx.get())); + xmlXPathObjectSPtr xpathObj = xmlXPathObjectSPtr(xmlXPathEvalExpression(fv->root(), xpathCtx.get()), xmlXPathFreeObject); if (!xpathObj || !xpathObj->nodesetval) { throw XpathEvalError(); } -- cgit v1.2.3