diff options
| author | Andi Gutmans <andi@php.net> | 2002-03-12 19:22:29 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2002-03-12 19:22:29 +0000 |
| commit | fb6976e46d6a0e3ce596358f866384e277849bc2 (patch) | |
| tree | 36aaa1e3b3c25274b484b7b0b7df2af49b1f3171 /Zend/zend_opcode.c | |
| parent | c8c629b3fcc1e531863b726faac843a3d8dde80d (diff) | |
| download | php-git-fb6976e46d6a0e3ce596358f866384e277849bc2.tar.gz | |
- Another couple of indirection fixes.
- Make class_entry->refcount be part of the structure and not allocated.
Diffstat (limited to 'Zend/zend_opcode.c')
| -rw-r--r-- | Zend/zend_opcode.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c index 9de9c78a4f..ed10615c83 100644 --- a/Zend/zend_opcode.c +++ b/Zend/zend_opcode.c @@ -110,7 +110,7 @@ ZEND_API void destroy_zend_class(zend_class_entry **pce) { zend_class_entry *ce = *pce; - if (--(*ce->refcount)>0) { + if (--ce->refcount > 0) { return; } switch (ce->type) { @@ -119,7 +119,6 @@ ZEND_API void destroy_zend_class(zend_class_entry **pce) zend_hash_destroy(&ce->private_properties); zend_hash_destroy(ce->static_members); efree(ce->name); - efree(ce->refcount); zend_hash_destroy(&ce->function_table); FREE_HASHTABLE(ce->static_members); zend_hash_destroy(&ce->constants_table); @@ -131,7 +130,6 @@ ZEND_API void destroy_zend_class(zend_class_entry **pce) zend_hash_destroy(&ce->private_properties); zend_hash_destroy(ce->static_members); free(ce->name); - free(ce->refcount); zend_hash_destroy(&ce->function_table); free(ce->static_members); zend_hash_destroy(&ce->constants_table); @@ -144,7 +142,7 @@ ZEND_API void destroy_zend_class(zend_class_entry **pce) void zend_class_add_ref(zend_class_entry **ce) { - (*(*ce)->refcount)++; + (*ce)->refcount++; } |
