From: <jc...@gm...> - 2015-01-07 16:42:43
|
Hello everyone, I'm trying to use the ruby-gnome2 gobject-introspection package to help make a Ruby binding for my GObject-based image processing library. I have a general question about memory management: how is reference counting handled? For example, if I create a new object like this: a = Vips::Image.new and then get rid of the reference: a = nil GC.start I would expect the object to be unreffed. Is there some extra magic I need? Tiny test program here: https://github.com/jcupitt/ruby-vips8/blob/master/try/try2.rb John |