Revision
755
Author
lsansonetti@apple.com
Date
2008-11-24 16:06:41 -0800 (Mon, 24 Nov 2008)

Log Message

fix for #167

Modified Paths

Diff

Modified: MacRuby/trunk/variable.c (754 => 755)


--- MacRuby/trunk/variable.c	2008-11-24 04:50:29 UTC (rev 754)
+++ MacRuby/trunk/variable.c	2008-11-25 00:06:41 UTC (rev 755)
@@ -1895,13 +1895,14 @@
 	tbl = check_autoload_table(av);
     }
     else {
-	av = Data_Wrap_Struct(0, rb_mark_tbl, st_free_table, 0);
+	av = Data_Wrap_Struct(rb_cData, rb_mark_tbl, st_free_table, 0);
 #if WITH_OBJC
 	rb_ivar_set(mod, autoload, av);
 #else
 	st_add_direct(tbl, autoload, av);
 #endif
-	DATA_PTR(av) = tbl = st_init_numtable();
+	tbl = st_init_numtable();
+	GC_WB(&DATA_PTR(av), tbl);
     }
     fn = rb_str_new2(file);
 #if __LP64__