From 8f5bbf5b121339f21c3859b8476a994c4cfc841a Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 19 Jan 2011 20:27:14 +0100 Subject: xmlfix3: #i113663#: unoxml: fix xmlRemoveProp errors --- unoxml/source/dom/node.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'unoxml/source/dom/node.cxx') diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx index 35344b8fe72b..c14389ed4ba9 100644 --- a/unoxml/source/dom/node.cxx +++ b/unoxml/source/dom/node.cxx @@ -831,6 +831,7 @@ namespace DOM { xmlAttrPtr pAttr = (xmlAttrPtr) old; xmlRemoveProp( pAttr ); + pOld->m_aNodePtr = NULL; // freed by xmlRemoveProp xReturn.clear(); } else @@ -900,6 +901,8 @@ namespace DOM xmlAttrPtr pAttr = (xmlAttrPtr)pOld; xmlRemoveProp( pAttr ); + CNode *const pOldNode( CNode::get(pOld) ); + pOldNode->m_aNodePtr = NULL; // freed by xmlRemoveProp appendChild( newChild ); } else -- cgit