Re: create_from_data
- From: Murray Cumming <murrayc murrayc com>
- To: jody <jody xha gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: create_from_data
- Date: Thu, 08 May 2008 15:57:03 +0200
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
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]