NetworkManager r3633 - in trunk: . libnm-glib
- From: tambeti svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r3633 - in trunk: . libnm-glib
- Date: Tue, 6 May 2008 08:59:31 +0100 (BST)
Author: tambeti
Date: Tue May 6 07:59:30 2008
New Revision: 3633
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3633&view=rev
Log:
2008-05-06 Tambet Ingo <tambet gmail com>
* libnm-glib/nm-dbus-settings.c (fetch_connections_done): Don't leak
the returned connection paths.
Modified:
trunk/ChangeLog
trunk/libnm-glib/nm-dbus-settings.c
Modified: trunk/libnm-glib/nm-dbus-settings.c
==============================================================================
--- trunk/libnm-glib/nm-dbus-settings.c (original)
+++ trunk/libnm-glib/nm-dbus-settings.c Tue May 6 07:59:30 2008
@@ -89,8 +89,12 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]