Passing object to named property free routines.
Adding argument, pointing to object that contains the property to be freed, to ecma_free_property, ecma_free_named_data_property and ecma_free_named_accessor_property. Also, adding static qualifier to ecma_free_named_data_property, ecma_free_named_accessor_property and ecma_free_internal_property.
This commit is contained in:
@@ -467,7 +467,7 @@ ecma_gc_sweep (ecma_object_t *object_p) /**< object to free */
|
||||
{
|
||||
next_property_p = ECMA_GET_POINTER(property->next_property_p);
|
||||
|
||||
ecma_free_property (property);
|
||||
ecma_free_property (object_p, property);
|
||||
}
|
||||
|
||||
ecma_dealloc_object (object_p);
|
||||
|
||||
Reference in New Issue
Block a user