summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-02-11 13:04:20 +0000
committerrandomdan <randomdan@localhost>2011-02-11 13:04:20 +0000
commitfe95a6d73b63dccd83a48c0f941bf1da73da4e7e (patch)
tree42426924ca7a6c796b2eedda2d77b4e038513ff6
parentLess copying and more native storage in fileRows (diff)
downloadproject2-fe95a6d73b63dccd83a48c0f941bf1da73da4e7e.tar.bz2
project2-fe95a6d73b63dccd83a48c0f941bf1da73da4e7e.tar.xz
project2-fe95a6d73b63dccd83a48c0f941bf1da73da4e7e.zip
Fix free function in xslRows for xmlXPathObject
-rw-r--r--project2/xslRows.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}