Re: Gtk2::ImageView memory issue



jeffrey ratcliffe gmail com wrote:
Presumably this is also the case for Glib::Boxed (Gtk2::Gdk::Pixbuf::Draw::Cache), although as the library supplies gdk_pixbuf_draw_cache_free, I should create a DESTROY method which calls this instead.
GBoxed descendants have their own memory management infrastructure and thus also 
their own typemap variants: for functions returning newly constructed instances 
of GBoxed descendants, use the _own typemap variant.  Then, Glib::Boxed::DESTROY 
will call the free function registered for the GBoxed descendant.  (Perl 
packages representing GBoxed descendants are automatically set up to inherit 
from Glib::Boxed.)






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