Permalink
Browse files

should mark child env from method (proc) objects

  • Loading branch information...
matz committed Jun 24, 2012
1 parent 6d3b35e commit 8121e0d354b83b3fa9d1363470e280dc98112289
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/class.c
  2. +1 −1 src/gc.c
View
@@ -37,7 +37,7 @@ mrb_gc_mark_mt(mrb_state *mrb, struct RClass *c)
if (kh_exist(h, k)){
struct RProc *m = kh_value(h, k);
if (m) {
- paint_black(m);
+ mrb_gc_mark(mrb, (struct RBasic*)m);
}
}
}
View
@@ -345,8 +345,8 @@ gc_mark_children(mrb_state *mrb, struct RBasic *obj)
break;
case MRB_TT_CLASS:
- case MRB_TT_SCLASS:
case MRB_TT_MODULE:
+ case MRB_TT_SCLASS:
{
struct RClass *c = (struct RClass*)obj;

0 comments on commit 8121e0d

Please sign in to comment.