summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-16 08:57:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-16 08:57:41 +0000
commit28e7beb54c560a43f72e55d512c4f09b55061030 (patch)
tree20d05e0b05a4730e3497de6babbda371cc2f3595
parent461daa604b8be8a8255525d00e7e7630303aa042 (diff)
* ext/dl/lib/dl/callback.rb (DL#remove_callback_internal): ignore
unbound function. [ruby-dev:38474] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/dl/lib/dl/callback.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7bddc012fb6..84bf7b09dd2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat May 16 17:57:39 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/lib/dl/callback.rb (DL#remove_callback_internal): ignore
+ unbound function. [ruby-dev:38474]
+
Sat May 16 17:51:11 2009 Kouhei Sutou <kou@cozmixng.org>
* sample/rss/rss_recent.rb, sample/rss/list_description.rb: use
diff --git a/ext/dl/lib/dl/callback.rb b/ext/dl/lib/dl/callback.rb
index d0b2c7a819f..c8daaf63224 100644
--- a/ext/dl/lib/dl/callback.rb
+++ b/ext/dl/lib/dl/callback.rb
@@ -48,7 +48,7 @@ module DL
}
}
end
- if( proc_entry[ctype][index] )
+ if( index and proc_entry[ctype][index] )
proc_entry[ctype][index] = nil
return true
else