diff options
author | Michael Stahl <mst@openoffice.org> | 2011-01-19 20:27:14 +0100 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2011-01-19 20:27:14 +0100 |
commit | 8f5bbf5b121339f21c3859b8476a994c4cfc841a (patch) | |
tree | 0d260bb09fa61a14f8065d34cb99b2d517385ae0 /unoxml/source/dom/node.cxx | |
parent | 6145d8c3f4a4da41b3fb2ad16627fd1f9d81fd5f (diff) |
xmlfix3: #i113663#: unoxml: fix xmlRemoveProp errors
Diffstat (limited to 'unoxml/source/dom/node.cxx')
-rw-r--r-- | unoxml/source/dom/node.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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 |