Re: Who owns the return values?
- From: Mark McLoughlin <mark skynet ie>
- To: Malcolm Tredinnick <malcolm commsecure com au>
- Cc: gconf-list gnome org
- Subject: Re: Who owns the return values?
- Date: 15 May 2003 12:18:36 +0100
Hi Malcolm,
On Thu, 2003-05-15 at 12:02, Malcolm Tredinnick wrote:
> OK, my brain hurts. Can somebody confirm I have not lost my grasp on
> what is going on here ...
>
> I am calling gconf_client_get_list() and getting back a list of strings.
> Is it true that I am then responsible for freeing the strings that are
> part of the returned GSList? Or do those strings still belong to GConf
> (which does not seem sensible, but I do not want to go around freeing
> memory that is not mine)?
Yep you own them :-)
Good Luck,
Mark.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]