summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/variable.c b/variable.c
index ed5bd845b8..53143ca190 100644
--- a/variable.c
+++ b/variable.c
@@ -1338,12 +1338,8 @@ autoload_delete(mod, id)
st_delete(tbl, (st_data_t*)&id, &load);
if (tbl->num_entries == 0) {
- DATA_PTR(val) = 0;
- st_free_table(tbl);
id = autoload;
- if (st_delete(RCLASS(mod)->iv_tbl, (st_data_t*)&id, &val)) {
- rb_gc_force_recycle(val);
- }
+ st_delete(RCLASS(mod)->iv_tbl, (st_data_t*)&id, &val);
}
}
@@ -1389,12 +1385,8 @@ autoload_file(mod, id)
/* already loaded but not defined */
st_delete(tbl, (st_data_t*)&id, 0);
if (!tbl->num_entries) {
- DATA_PTR(val) = 0;
- st_free_table(tbl);
id = autoload;
- if (st_delete(RCLASS(mod)->iv_tbl, (st_data_t*)&id, &val)) {
- rb_gc_force_recycle(val);
- }
+ st_delete(RCLASS(mod)->iv_tbl, (st_data_t*)&id, &val);
}
return Qnil;
}