NetworkManager/examples
Thomas Haller 3eb1d5e902 core: cleanup freeing of glib collections of pointers
When freeing one of the collections such as GArray, GPtrArray, GSList,
etc. it is common that the items inside the connections must be
freed/unrefed too.

The previous code often iterated over the collection first with
e.g. g_ptr_array_foreach and passing e.g. g_free as GFunc argument.
For one, this has the problem, that g_free has a different signature
GDestroyNotify then the expected GFunc. Moreover, this can be
simplified either by setting a clear function
(g_ptr_array_set_clear_func) or by passing the destroy function to the
free function (g_slist_free_full).

Signed-off-by: Thomas Haller <thaller@redhat.com>
2013-10-22 19:53:57 +02:00
..
C core: cleanup freeing of glib collections of pointers 2013-10-22 19:53:57 +02:00
dispatcher examples: update 70-wifi-wired-exclusive.sh for new nmcli syntax 2013-07-15 15:52:23 +02:00
python examples: add an python example (using GI) showing Wi-Fi networks 2013-09-26 16:30:23 +02:00
ruby examples: update examples for new device types 2012-08-24 09:48:19 +02:00
shell examples: add a shell example listing active Wi-Fi networks on Wi-Fi devices 2012-09-03 11:57:49 +02:00
Makefile.am examples: add dispatcher example for exclusive wired/wifi 2012-09-20 10:19:11 -05:00