diff options
Diffstat (limited to 'ext/domxml/php_domxml.c')
-rw-r--r-- | ext/domxml/php_domxml.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index 8d18cbea6c..f55ede7d12 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -744,6 +744,7 @@ static void php_free_xml_node(zend_rsrc_list_entry *rsrc TSRMLS_DC) if (node->parent == NULL) { /* Attribute Nodes ccontain accessible children attr_list_wrapper_dtor(node->properties); */ + xmlSetTreeDoc(node, NULL); node_list_wrapper_dtor((xmlNodePtr) node->properties, 0 TSRMLS_CC); node_list_wrapper_dtor(node->children, 0 TSRMLS_CC); node_wrapper_dtor(node); |