summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--types.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/types.c b/types.c
index a8de8e4..6f60f59 100644
--- a/types.c
+++ b/types.c
@@ -2189,6 +2189,9 @@ ucv_gc_common(uc_vm_t *vm, bool final)
for (i = 0; i < vm->stack.count; i++)
ucv_gc_mark(vm->stack.entries[i]);
+
+ for (i = 0; i < vm->restypes.count; i++)
+ ucv_gc_mark(vm->restypes.entries[i]->proto);
}
/* unref unreachable objects */