NetworkManager/callouts
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
..
tests build: switch from $(INCLUDES) to $(AM_CPPFLAGS) to make automake happy 2013-08-22 11:49:16 -04:00
77-nm-olpc-mesh.rules olpc: add mesh device logic and config setting 2009-08-05 16:34:02 -04:00
Makefile.am build: switch from $(INCLUDES) to $(AM_CPPFLAGS) to make automake happy 2013-08-22 11:49:16 -04:00
nm-avahi-autoipd-action.c core: use _GNU_SOURCE consistently 2009-04-21 18:29:25 -04:00
nm-avahi-autoipd.conf dbus: final dbus policy fixes (bgo #563730) 2009-02-17 10:43:53 -05:00
nm-dispatcher-action.c core: cleanup freeing of glib collections of pointers 2013-10-22 19:53:57 +02:00
nm-dispatcher-action.h core: convert dispatcher to asynchronous operation and return its results 2012-09-11 17:06:16 -05:00
nm-dispatcher-utils.c core: cleanup freeing of glib collections of pointers 2013-10-22 19:53:57 +02:00
nm-dispatcher-utils.h dispatcher: enhance dispatcher script environment (bgo #648382) 2011-05-02 22:54:28 -05:00
nm-dispatcher.conf dbus: final dbus policy fixes (bgo #563730) 2009-02-17 10:43:53 -05:00
nm-dispatcher.xml core: convert dispatcher to asynchronous operation and return its results 2012-09-11 17:06:16 -05:00
org.freedesktop.nm_dispatcher.service.in systemd: add service for dispatcher (rh #948433) 2013-06-03 10:53:07 -05:00