summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/variable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/variable.c b/src/variable.c
index 2cd185434..a50256353 100644
--- a/src/variable.c
+++ b/src/variable.c
@@ -553,6 +553,7 @@ mrb_iv_copy(mrb_state *mrb, mrb_value dest, mrb_value src)
d->iv = 0;
}
if (s->iv) {
+ mrb_write_barrier(mrb, (struct RBasic*)d);
d->iv = iv_copy(mrb, s->iv);
}
}