summaryrefslogtreecommitdiff
path: root/ext/libxml/libxml.c
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2006-05-22 17:09:05 +0000
committerRob Richards <rrichards@php.net>2006-05-22 17:09:05 +0000
commit3997d6663bb0578d9bb24df5cccd97a8cac0f397 (patch)
tree9f50f1694afd11111a677951fc80100b78db65aa /ext/libxml/libxml.c
parente2c6d3edae368936869b8d265bb3ae36f42dd36d (diff)
downloadphp-git-3997d6663bb0578d9bb24df5cccd97a8cac0f397.tar.gz
MFH: move document property struct from xml_common.h
Diffstat (limited to 'ext/libxml/libxml.c')
-rw-r--r--ext/libxml/libxml.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index dc5b38921f..b2d55c6122 100644
--- a/ext/libxml/libxml.c
+++ b/ext/libxml/libxml.c
@@ -942,6 +942,10 @@ int php_libxml_decrement_doc_ref(php_libxml_node_object *object TSRMLS_DC) {
xmlFreeDoc((xmlDoc *) object->document->ptr);
}
if (object->document->doc_props != NULL) {
+ if (object->document->doc_props->classmap) {
+ zend_hash_destroy(object->document->doc_props->classmap);
+ FREE_HASHTABLE(object->document->doc_props->classmap);
+ }
efree(object->document->doc_props);
}
efree(object->document);