Aaron Patterson 7733db665a [ruby/fiddle] Fiddle::Function must maintain a reference to the closure
If the first parameter to Fiddle::Function is a closure object (rather
than an interger), `rb_Integer` will cast it to an integer but not
maintain a reference to the closure.  Then if the closure gets GC'd, we
have a segv.  This commit keeps a reference to the original parameter to
initialize so that the object will not be GC'd.

Fixes: https://bugs.ruby-lang.org/issues/13286

https://github.com/ruby/fiddle/commit/0fc697bbc5
2019-10-24 19:34:15 +09:00
..
2019-10-17 13:35:26 -07:00
2019-10-10 19:59:21 +09:00
2019-08-27 15:52:26 +09:00
2019-10-21 11:50:44 +09:00
2019-07-14 01:31:29 +09:00
2019-09-10 10:10:59 +09:00
2019-10-14 15:10:56 +09:00
2019-09-19 20:57:57 +09:00