summaryrefslogtreecommitdiff
path: root/include/test
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-02 15:45:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-02 15:45:28 +0200
commitf87859b88f965a364804c22c1e81ca406df0e402 (patch)
tree43d40815ed22322a20e194bef683a4295eaf4d2d /include/test
parent7e4a51ee504baedc9150a1c88c2a5ce7cd64bfbd (diff)
Fix memory leaks in test code
Change-Id: Ifa756a5da636e0b37654ad83900115872bc40f0e
Diffstat (limited to 'include/test')
-rw-r--r--include/test/xmltesttools.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/test/xmltesttools.hxx b/include/test/xmltesttools.hxx
index 8937211b9f3f..4849ed9afb5b 100644
--- a/include/test/xmltesttools.hxx
+++ b/include/test/xmltesttools.hxx
@@ -36,7 +36,8 @@ protected:
virtual void registerNamespaces(xmlXPathContextPtr& pXmlXpathCtx);
- xmlNodeSetPtr getXPathNode(xmlDocPtr pXmlDoc, const OString& rXPath);
+ // Caller must call xmlXPathFreeObject:
+ xmlXPathObjectPtr getXPathNode(xmlDocPtr pXmlDoc, const OString& rXPath);
/**
* Same as the assertXPath(), but don't assert: return the string instead.
*/