summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-11 06:51:42 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-11 06:51:42 +0000
commit8f97a2c53745f97055c38f41dd1e3dd96e64b300 (patch)
treebc851e2634160217beae68650ff6d825789605b7 /variable.c
parent7b05ac78e18740d107af133c410069375855dea1 (diff)
* variable.c (autoload_delete): An autoload entry is still in a
RCLASS_IV_TBL, not in a RCLASS_CONST_TBL, so take back the table changed in r29600. And an autoload entry keeps not a rb_const_entry_t but a NODE so remove rb_const_entry_t thing added in r29602. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/variable.c b/variable.c
index ef1c914df3..6ddbd71390 100644
--- a/variable.c
+++ b/variable.c
@@ -1495,9 +1495,7 @@ autoload_delete(VALUE mod, ID id)
if (tbl->num_entries == 0) {
n = autoload;
- st_delete(RCLASS_CONST_TBL(mod), &n, &val);
- ce = (rb_const_entry_t*)val;
- if (ce) xfree(ce);
+ st_delete(RCLASS_IV_TBL(mod), &n, &val);
}
}