mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-22 02:35:25 +00:00
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:
parent
ae72ec796a
commit
5b2aea3d63
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue