Re: Gtk2::ImageView memory issue



Kevin Ryde wrote:
I wonder if the return for gtk_image_tool_selector_new() in the .xs
should be SVGtkIImageTool_noinc, if that func gives you a ref to take
over.  Seems to make it work for me ...

Yes. Constructors and other functions returning new instances of direct GObject descendants need to use the _noinc typemaps to assume ownership. This is not necessary for GtkObject descendants.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]