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
commit5d28a5de83c4d809d864f57ee97cc9da11b1e43e (patch)
tree42426924ca7a6c796b2eedda2d77b4e038513ff6
parentLess copying and more native storage in fileRows (diff)
downloadproject2-5d28a5de83c4d809d864f57ee97cc9da11b1e43e.tar.bz2
project2-5d28a5de83c4d809d864f57ee97cc9da11b1e43e.tar.xz
project2-5d28a5de83c4d809d864f57ee97cc9da11b1e43e.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();
}