NetworkManager/libnm-glib
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 test: launch dbus for test-remote-settings-client 2013-10-04 17:02:43 +02:00
libnm-glib-test.c all: replace struct in_addr with guint32 2013-08-03 00:15:07 -05:00
libnm-glib-vpn.pc.in release: bump version to 0.9.0 2011-08-22 20:33:07 -05:00
libnm-glib-vpn.ver libnm-glib-vpn: add support for interactive secrets requests 2013-07-31 08:16:40 -05:00
libnm-glib.pc.in libnm-glib,libnm-util: -glib requires -util, -util requires NetworkManager 2013-03-14 10:23:19 -05:00
libnm-glib.ver libnm-glib: Add NMClient:primary-connection and :activating-connection 2013-08-28 11:01:43 -04:00
libnm_glib.c core: cleanup freeing of glib collections of pointers 2013-10-22 19:53:57 +02:00
libnm_glib.h libnm-glib: deprecate original libnm_glib bits 2010-03-10 09:18:08 -08:00
Makefile.am libnm-util, libnm-glib: bump .so versions to be higher than 0.9.8.4's 2013-09-25 10:16:55 -04:00
nm-access-point.c libnm-glib: remove bogus warning 2013-10-15 16:53:05 -05:00
nm-access-point.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-active-connection.c core: cleanup freeing of glib collections of pointers 2013-10-22 19:53:57 +02:00
nm-active-connection.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-client.c core: cleanup freeing of glib collections of pointers 2013-10-22 19:53:57 +02:00
nm-client.h libnm-glib: Add NMClient:primary-connection and :activating-connection 2013-08-28 11:01:43 -04:00
nm-dbus-helpers-private.h libnm-glib: add helper to connect to NM's private D-Bus socket 2013-04-08 11:30:31 -05:00
nm-dbus-helpers.c trivial: whitespace fix 2013-10-02 10:13:18 -05:00
nm-device-adsl.c libnm-glib: use helpers to create dbus proxies 2013-04-08 11:30:32 -05:00
nm-device-adsl.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-device-bond.c core: cleanup freeing of glib collections of pointers 2013-10-22 19:53:57 +02:00
nm-device-bond.h core, libnm-glib: expose "slaves" property on NMDeviceBond 2012-10-19 12:09:27 -04:00
nm-device-bridge.c core: cleanup freeing of glib collections of pointers 2013-10-22 19:53:57 +02:00
nm-device-bridge.h libnm-glib: add Since tags to new functions and properties 2013-02-22 08:34:13 -06:00
nm-device-bt.c libnm-glib: use helpers to create dbus proxies 2013-04-08 11:30:32 -05:00
nm-device-bt.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-device-ethernet.c libnm-glib: use helpers to create dbus proxies 2013-04-08 11:30:32 -05:00
nm-device-ethernet.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-device-generic.c libnm: more valgrinding fixes 2013-10-03 11:04:45 -04:00
nm-device-generic.h core: add NMDeviceGeneric:type-description 2013-05-07 12:46:56 -04:00
nm-device-infiniband.c infiniband: only check the last 8 bytes when doing hwaddr matches 2013-09-24 11:54:35 -04:00
nm-device-infiniband.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-device-modem.c libnm-glib: fix NMDeviceModem connection compatible check for LTE connections 2013-09-14 18:46:32 -05:00
nm-device-modem.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-device-olpc-mesh.c libnm-glib: use helpers to create dbus proxies 2013-04-08 11:30:32 -05:00
nm-device-olpc-mesh.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-device-private.h libnm-glib: ensure nm_device_set_device_type() stays private 2012-03-12 14:33:51 -05:00
nm-device-team.c core: cleanup freeing of glib collections of pointers 2013-10-22 19:53:57 +02:00
nm-device-team.h libnm-glib: add support for team device 2013-08-15 10:54:15 -05:00
nm-device-vlan.c all: standardize on NMSettingWired:mac-address for all VLANs 2013-09-12 18:34:23 -04:00
nm-device-vlan.h all: standardize on NMSettingWired:mac-address for all VLANs 2013-09-12 18:34:23 -04:00
nm-device-wifi.c libnm-util, libnm-glib: fix up some gtk-doc comments 2013-10-11 10:16:14 -04:00
nm-device-wifi.h libnm-glib: add nm_device_wifi_request_scan_simple() to tell NM to scan for APs 2013-01-09 16:41:40 +01:00
nm-device-wimax.c libnm-util, libnm-glib: fix up some gtk-doc comments 2013-10-11 10:16:14 -04:00
nm-device-wimax.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-device.c Fix typos 2013-10-19 11:49:18 -04:00
nm-device.h libnm-glib, cli: add nm_device_get_type_description 2013-05-07 12:46:56 -04:00
nm-dhcp4-config.c libnm-glib: use helpers to create dbus proxies 2013-04-08 11:30:32 -05:00
nm-dhcp4-config.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-dhcp6-config.c libnm-glib: use helpers to create dbus proxies 2013-04-08 11:30:32 -05:00
nm-dhcp6-config.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-ip4-config.c core: cleanup freeing of glib collections of pointers 2013-10-22 19:53:57 +02:00
nm-ip4-config.h core: update existing IP[46]Config of device instead of replacing it (bgo #707617) 2013-09-25 23:12:37 +02:00
nm-ip6-config.c core: cleanup freeing of glib collections of pointers 2013-10-22 19:53:57 +02:00
nm-ip6-config.h core: update existing IP[46]Config of device instead of replacing it (bgo #707617) 2013-09-25 23:12:37 +02:00
nm-object-cache.c libnm-glib: ensure object cache is cleared when NM stops (bgo #674473) 2012-04-23 17:10:14 -05:00
nm-object-cache.h libnm-glib: ensure object cache is cleared when NM stops (bgo #674473) 2012-04-23 17:10:14 -05:00
nm-object-private.h libnm-glib: use private connection before trying the system bus 2013-04-08 11:30:32 -05:00
nm-object.c core: cleanup freeing of glib collections of pointers 2013-10-22 19:53:57 +02:00
nm-object.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-remote-connection-private.h libnm-glib: handle initially invisible connections correctly 2011-02-12 22:00:30 -06:00
nm-remote-connection.c libnm-glib: fix nm_remote_connection_delete() callback 2013-09-09 09:28:24 -04:00
nm-remote-connection.h libnm-glib: add support for new connection unsaved functionality 2013-05-28 12:26:56 -05:00
nm-remote-settings.c Fix typos 2013-10-19 11:49:18 -04:00
nm-remote-settings.h core: add monitor-connection-files=false and ReloadConnections 2013-06-14 12:57:47 -03:00
nm-secret-agent.c libnm-glib: add support for agent capabilities during registration 2013-07-31 08:16:40 -05:00
nm-secret-agent.h libnm-glib: add support for agent capabilities during registration 2013-07-31 08:16:40 -05:00
nm-types-private.h libnm-glib: add NMIP6Config object that proxies device's IP6 config 2009-08-20 11:30:52 -05:00
nm-types.c core: cleanup freeing of glib collections of pointers 2013-10-22 19:53:57 +02:00
nm-types.h Use glib-mkenums to generate enum types 2012-02-15 11:42:15 -05:00
nm-vpn-connection.c libnm-glib, core: use g_cclosure_marshal_generic 2013-05-08 14:59:29 -04:00
nm-vpn-connection.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-vpn-plugin-ui-interface.c libnm-glib: VPN delete and save secrets operations are no longer used 2011-07-13 13:00:16 -05:00
nm-vpn-plugin-ui-interface.h Fix typos 2013-10-19 11:49:18 -04:00
nm-vpn-plugin-utils.c vpn: support IPv6 over VPNs 2012-05-30 14:24:46 -04:00
nm-vpn-plugin-utils.h libnm-glib-vpn: add some helpers for auth dialogs 2011-02-10 18:48:32 -06:00
nm-vpn-plugin.c vpn: fix VPN plugin D-Bus errors 2013-09-27 13:26:29 +02:00
nm-vpn-plugin.h vpn: fix connecting to VPN (bgo #708255) 2013-09-27 13:26:09 +02:00
nm-wimax-nsp.c libnm-glib: use helpers to create dbus proxies 2013-04-08 11:30:32 -05:00
nm-wimax-nsp.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00