>>>>> "Y" == Yukihiro Matsumoto <matz / netlab.co.jp> writes:

Y> How about using finalizers.  It's hard to use finalizers from Ruby,
Y> but since you are making extension, it's easy to use them from C.

 I'll try this, Thanks 

Guy Decoux