summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}