From: Kouhei S. <ko...@co...> - 2015-01-31 12:47:40
|
Hi, Thanks for the information! I've fixed it at master. Could you try master again? Thanks, -- kou In <CAG...@ma...> "Re: [ruby-gnome2-devel-en] ref and unref" on Fri, 30 Jan 2015 14:07:06 +0000, jc...@gm... wrote: > Ooop, excuse me, I think I found my problem. > > gobject-introspection seems to be reffing the object it gets back from > vips_image_new(), even though constructors should not do this (I > think). How can I stop gobject-introspection from making this extra > reference? > > If I run this code: > > x = Vips::Image.new > x.print_dump > > at the end of the C vips_image_new() function, the object has a > reference count of 1. But when x.print_dump runs, I see a count of 2. > When I then run: > > x = nil > GC.start > > the count drops to 1, but never to zero, so the object is not freed. > > I tried adding a (transfer full) annotation to vips_image_new(), but > it made no difference, gobject-introspection still made an extra > g_object_ref() during new. > > John > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en |