- Fixed memory leak with this pointer. It was somtimes initialized with refcount

of 2 instead of 1.
- Also fixed a place where object.ptr_ptr is set to pointing to a zval* instead
  of zval**. I don't think this is ever used so we might be able to remove it
  altogether.
This commit is contained in:
Andi Gutmans 1999-10-06 17:45:15 +00:00
parent 8959144837
commit e3d0c91dbb

View file

@ -1492,9 +1492,9 @@ do_fcall_common:
*tmp = *object.ptr; *tmp = *object.ptr;
zendi_zval_copy_ctor(*tmp); zendi_zval_copy_ctor(*tmp);
object.ptr = tmp; object.ptr = tmp;
*object.ptr_ptr = tmp; object.ptr_ptr = &tmp;
} }
object.ptr->refcount = 1; object.ptr->refcount = 0;
object.ptr->is_ref = 1; object.ptr->is_ref = 1;
} }
*this_ptr = object.ptr; *this_ptr = object.ptr;