[bugfix] irep->name is missed to mark
This commit is contained in:
parent
914242a531
commit
c5f711ddd6
|
@ -440,6 +440,8 @@ gc_mark_object(pic_state *pic, struct pic_object *obj)
|
||||||
struct pic_irep *irep = (struct pic_irep *)obj;
|
struct pic_irep *irep = (struct pic_irep *)obj;
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
|
gc_mark_object(pic, (struct pic_object *)irep->name);
|
||||||
|
|
||||||
for (i = 0; i < irep->ilen; ++i) {
|
for (i = 0; i < irep->ilen; ++i) {
|
||||||
gc_mark_object(pic, (struct pic_object *)irep->irep[i]);
|
gc_mark_object(pic, (struct pic_object *)irep->irep[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue