diff --git a/src/shared/gravity_hash.c b/src/shared/gravity_hash.c index 087f547..1aa908c 100644 --- a/src/shared/gravity_hash.c +++ b/src/shared/gravity_hash.c @@ -482,7 +482,7 @@ bool gravity_hash_compare (gravity_hash_t *hashtable1, gravity_hash_t *hashtable return result; } -void gravity_hash_finteralfree (gravity_hash_t *table, gravity_value_t key, gravity_value_t value, void *data) { +void gravity_hash_interalfree (gravity_hash_t *table, gravity_value_t key, gravity_value_t value, void *data) { #pragma unused(table, key, data) if (gravity_value_isobject(value)) { gravity_object_t *obj = VALUE_AS_OBJECT(value); diff --git a/src/shared/gravity_hash.h b/src/shared/gravity_hash.h index 3e75d71..9f05811 100644 --- a/src/shared/gravity_hash.h +++ b/src/shared/gravity_hash.h @@ -65,7 +65,7 @@ GRAVITY_API bool gravity_hash_compare (gravity_hash_t *hashtable1, g // MARK: - CALLBACKS - // HASH FREE CALLBACK FUNCTION -GRAVITY_API void gravity_hash_finteralfree (gravity_hash_t *table, gravity_value_t key, gravity_value_t value, void *data); +GRAVITY_API void gravity_hash_interalfree (gravity_hash_t *table, gravity_value_t key, gravity_value_t value, void *data); GRAVITY_API void gravity_hash_keyfree (gravity_hash_t *table, gravity_value_t key, gravity_value_t value, void *data); GRAVITY_API void gravity_hash_keyvaluefree (gravity_hash_t *table, gravity_value_t key, gravity_value_t value, void *data); GRAVITY_API void gravity_hash_valuefree (gravity_hash_t *table, gravity_value_t key, gravity_value_t value, void *data); diff --git a/src/shared/gravity_value.c b/src/shared/gravity_value.c index b657a81..f002e2f 100644 --- a/src/shared/gravity_value.c +++ b/src/shared/gravity_value.c @@ -376,7 +376,7 @@ static void gravity_class_free_internal (gravity_vm *vm, gravity_class_t *c, boo if (!skip_base) { // base classes have functions not registered inside VM so manually free all of them - gravity_hash_iterate(c->htable, gravity_hash_finteralfree, NULL); + gravity_hash_iterate(c->htable, gravity_hash_interalfree, NULL); gravity_hash_iterate(c->htable, gravity_hash_valuefree, NULL); }