diff options
author | Michael Stahl <mst@openoffice.org> | 2011-01-11 13:02:25 +0100 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2011-01-11 13:02:25 +0100 |
commit | 737a43c324706fa6d20302465191fe756a77f003 (patch) | |
tree | ad5be555164959b8db68969bb7031d1ac46d7334 /unoxml/source/xpath/xpathobject.cxx | |
parent | 220821e1f4c3cb86a891e5864b665cadcfaed0c6 (diff) |
xmlfix3: #i115995#: unoxml: retain context node in XPath::CNodeList:
prevents the document containing the nodes from being released.
Diffstat (limited to 'unoxml/source/xpath/xpathobject.cxx')
-rw-r--r-- | unoxml/source/xpath/xpathobject.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/unoxml/source/xpath/xpathobject.cxx b/unoxml/source/xpath/xpathobject.cxx index 757de0c5aac4..a02c79b9945b 100644 --- a/unoxml/source/xpath/xpathobject.cxx +++ b/unoxml/source/xpath/xpathobject.cxx @@ -85,7 +85,9 @@ namespace XPath */ Reference< XNodeList > SAL_CALL CXPathObject::getNodeList() throw (RuntimeException) { - return Reference< XNodeList >(new CNodeList(m_pXPathObj)); + Reference< XNodeList > const xRet( + new CNodeList(m_xContextNode, m_pXPathObj)); + return xRet; } /** |