diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-02-21 18:28:58 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-02-21 18:28:58 +0100 |
commit | a7927d1dba01769af1869e7e4a704f38e9600759 (patch) | |
tree | 1bc86f027e3e71b20984a599e14f00353178370f /zend/classimpl.h | |
parent | e1f97c494ae31b9d67e85c6b17a18bb925bc2989 (diff) |
fixed memory leak in classimpl
Diffstat (limited to 'zend/classimpl.h')
-rw-r--r-- | zend/classimpl.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/zend/classimpl.h b/zend/classimpl.h index 32f0e1f..5d0ab60 100644 --- a/zend/classimpl.h +++ b/zend/classimpl.h @@ -42,13 +42,13 @@ private: * @var zend_class_entry */ zend_class_entry *_entry = nullptr; - + /** * Pointer to the entries * @var zend_function_entry[] */ zend_function_entry *_entries = nullptr; - + /** * All class methods * @var std::list @@ -91,6 +91,11 @@ private: */ bool _initialized = false; + /** + * Memory allocated by this object to hide a pointer + * @var char* + */ + char *_self = nullptr; /** * Retrieve an array of zend_function_entry objects that hold the |