瀏覽代碼

Fixed error in context destruction

main
Ludovic 'Archivist' Lagouardette 3 月之前
父節點
當前提交
211ced2b8c
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      lib.c

+ 1
- 1
lib.c 查看文件

@ -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…
取消
儲存