mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 10:40:58 +01:00
2007-08-27 Tambet Ingo <tambet@gmail.com>
* src/nm-manager.c (impl_manager_get_devices): Duplicate the
* device path,
dbus-glib frees it when the call is done.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2736 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
84f666b16c
commit
2fe726d144
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2007-08-27 Tambet Ingo <tambet@gmail.com>
|
||||
|
||||
* src/nm-manager.c (impl_manager_get_devices): Duplicate the device path,
|
||||
dbus-glib frees it when the call is done.
|
||||
|
||||
2007-08-26 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* introspection/nm-device.xml
|
||||
|
|
|
|||
|
|
@ -350,7 +350,7 @@ impl_manager_get_devices (NMManager *manager, GPtrArray **devices, GError **err)
|
|||
*devices = g_ptr_array_sized_new (g_slist_length (priv->devices));
|
||||
|
||||
for (iter = priv->devices; iter; iter = iter->next)
|
||||
g_ptr_array_add (*devices, nm_device_get_dbus_path (NM_DEVICE (iter->data)));
|
||||
g_ptr_array_add (*devices, g_strdup (nm_device_get_dbus_path (NM_DEVICE (iter->data))));
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue