diff options
Diffstat (limited to 'source/kit/dynamic_array.h')
-rw-r--r-- | source/kit/dynamic_array.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/kit/dynamic_array.h b/source/kit/dynamic_array.h index b571c75..35dddb3 100644 --- a/source/kit/dynamic_array.h +++ b/source/kit/dynamic_array.h @@ -44,11 +44,11 @@ void kit_da_resize(kit_da_void_t *array, ptrdiff_t element_size, /* Destroy dynamic array. */ -#define KIT_DA_DESTROY(array_) \ - do { \ - if ((array_).values != NULL) \ - (array_).alloc.deallocate((array_).alloc.state, \ - (array_).values); \ +#define KIT_DA_DESTROY(array_) \ + do { \ + if ((array_).values != NULL) \ + kit_alloc_dispatch((array_).alloc, KIT_DEALLOCATE, 0, 0, \ + (array_).values); \ } while (0) /* Resize dynamic array. |