2008-05-06 Tambet Ingo <tambet@gmail.com>

* libnm-glib/nm-dbus-settings.c (fetch_connections_done): Don't leak
	the returned connection paths.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3633 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Tambet Ingo 2008-05-06 07:59:30 +00:00
parent ae72ec796a
commit 5b2aea3d63
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2008-05-06 Tambet Ingo <tambet@gmail.com>
* libnm-glib/nm-dbus-settings.c (fetch_connections_done): Don't leak
the returned connection paths.
2008-05-05 Tambet Ingo <tambet@gmail.com>
* libnm-glib/nm-dbus-settings.c (constructor): Fix the

View file

@ -89,8 +89,12 @@ fetch_connections_done (DBusGProxy *proxy,
if (!err) {
int i;
for (i = 0; i < connections->len; i++)
new_connection_cb (proxy, g_ptr_array_index (connections, i), user_data);
for (i = 0; i < connections->len; i++) {
char *path = g_ptr_array_index (connections, i);
new_connection_cb (proxy, path, user_data);
g_free (path);
}
} else {
g_warning ("Could not retrieve dbus connections: %s.", err->message);
g_error_free (err);