On Thu, 2008-05-08 at 15:34 +0200, jody wrote:
> Hi
> In the chapter memory managment you don't mention
> who has the responsibility to delete objects created
> with functions such as Pixbuf::create_from_data ().
> 
> Is this the programmers task, or is there reference counting
> (GLib::RefPtr) involved?
> Or more generally, if a function returns a RefPtr to an object, will
> gtmm take care of its deletion?

Yes if a method gives you a RefPtr<> then it's being reference-counted
and you don't need to explicitly destroy it. Hopefully this is explained
clearly in the memory management section (and in Basics, I think) in the
gtkmm book.

-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com
www.openismus.com

_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to