GSList* memory management.
- From: Murray Cumming <murrayc murrayc com>
- To: gconf-list <gconf-list gnome org>
- Subject: GSList* memory management.
- Date: Wed, 16 May 2007 13:08:18 +0200
I'd like to improve the documentation for functions that return GSLists
and GList*. The documentation needs to specify how they should be freed:
- with just g_slist_free() - a shallow delete.
or
- with a g_free() (or appropriate) on each item, and then a
g_slist_free() - a deep delete.
For instance, which should it be for these functions?
gconf_client_all_dirs()
gconf_client_all_entries()
gconf_client_get_list()
--
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]