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:
Ruben Ayrapetyan
2014-11-17 16:59:36 +03:00
parent 7bb6c6bc84
commit 34430f0831
3 changed files with 22 additions and 20 deletions
+1 -1
View File
@@ -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);