summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-17 15:48:05 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-17 15:48:05 +0000
commit68201165edb493fd48426c039bd84a25c326fdca (patch)
tree903dd17ffbd77a331860fe863e28400bec5bd53c /gc.c
parent4156653bc05e54b2f779a7aa4ba354d957914238 (diff)
* gc.c (rb_gc_call_finalizer_at_exit): finalizer_table can be NULL.
[ruby-core:24395] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@24178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index da56b9d044..52b1c23e6b 100644
--- a/gc.c
+++ b/gc.c
@@ -1998,7 +1998,7 @@ rb_gc_call_finalizer_at_exit()
int i;
/* run finalizers */
- if (need_call_final) {
+ if (need_call_final && finalizer_table) {
do {
p = deferred_final_list;
deferred_final_list = 0;