summaryrefslogtreecommitdiff
path: root/ext/libxml/libxml.c
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2004-07-18 11:45:12 +0000
committerRob Richards <rrichards@php.net>2004-07-18 11:45:12 +0000
commit22b70fcb31d91962bf05fa38a6cc5c2f51b2198c (patch)
tree0676dcc8ddffedb6fd9ddd99e3023aa938172668 /ext/libxml/libxml.c
parent96f5c697ddbf663e0164a63d58d43d2dfd37a1f5 (diff)
downloadphp-git-22b70fcb31d91962bf05fa38a6cc5c2f51b2198c.tar.gz
MFB: Fixed bug #29221 (Segfault using DOM ownerDocument in a PHP object)
Diffstat (limited to 'ext/libxml/libxml.c')
-rw-r--r--ext/libxml/libxml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index cb0519631a..4e41adb10e 100644
--- a/ext/libxml/libxml.c
+++ b/ext/libxml/libxml.c
@@ -568,7 +568,7 @@ int php_libxml_decrement_node_ptr(php_libxml_node_object *object TSRMLS_DC) {
obj_node = (php_libxml_node_ptr *) object->node;
ret_refcount = --obj_node->refcount;
if (ret_refcount == 0) {
- if (obj_node->node != NULL && obj_node->node->type != XML_DOCUMENT_NODE) {
+ if (obj_node->node != NULL) {
obj_node->node->_private = NULL;
}
efree(obj_node);