From: Jason Roelofs Date: 2008-02-05T04:16:22+09:00 Subject: Re: Extensions: Init_extension exists, looking for Deinit_extension As you cannot explicitly unload a require, no there's nothing like this because it's not needed. When the ruby interpreter shuts down, the C runtime / OS cleans up anything opened during execution. Jason On Feb 4, 2008 12:32 PM, daniel åkerud wrote: > I am allocating a resource in Init_extension, that is, when the .so file is > loaded. I am looking for a way to deallocate this resource even though no > object has been created with the extension, in other words, I cannot release > the resource with the garbage collector. Is there something for this? > > /D >