summaryrefslogtreecommitdiff
path: root/src/classinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/classinfo.cpp')
-rw-r--r--src/classinfo.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/classinfo.cpp b/src/classinfo.cpp
index aa4d67f..6d96494 100644
--- a/src/classinfo.cpp
+++ b/src/classinfo.cpp
@@ -34,8 +34,11 @@ static void deallocate_object(void *object TSRMLS_DC)
if (obj->cpp) delete obj->cpp;
// get rid of the object properties
- zend_hash_destroy(obj->php.properties);
- FREE_HASHTABLE(obj->php.properties);
+ // @todo if we enable the following two lines, segmentation
+ // faults and memory corruption occurs. however, the online
+ // documentation does it like this
+ //zend_hash_destroy(obj->php.properties);
+ //FREE_HASHTABLE(obj->php.properties);
// deallocate the entire object
efree(obj);