Browse Source

Fixed error in context destruction

main
Ludovic 'Archivist' Lagouardette 2 months ago
parent
commit
211ced2b8c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib.c

+ 1
- 1
lib.c View File

@ -318,7 +318,7 @@ int ink_destroy(struct context* ctx) {
for (i = 0; i < ctx->types_top; ++i) {
struct ink_type* t = ctx->types + i;
if (t->element_size > 0 && t->elements_top > 0) {
for (j = 0; i < t->element_size; ++i) {
for (j = 0; i < t->element_size; ++j) {
if (t->elements[j].in_use) {
t->collect(ctx, t->elements[j].data);
ctx->free(ctx, t->elements[j].data);

Loading…
Cancel
Save