mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 09:04:55 +00:00
2006-11-27 Dan Williams <dcbw@redhat.com>
Patch from Christian Persch <chpe@gnome.org> * gnome/applet/applet-dbus-devices.c - (hal_info_product_cb): fix memleak; free duped string. Gnome.org #379908 git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2131 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
17b61aa02f
commit
13ee37f480
|
@ -1,3 +1,11 @@
|
|||
2006-11-27 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
Patch from Christian Persch <chpe@gnome.org>
|
||||
|
||||
* gnome/applet/applet-dbus-devices.c
|
||||
- (hal_info_product_cb): fix memleak; free duped string.
|
||||
Gnome.org #379908
|
||||
|
||||
2006-11-27 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
Patch from Christian Persch <chpe@gnome.org>
|
||||
|
|
|
@ -322,9 +322,11 @@ static void hal_info_product_cb (DBusPendingCall *pcall, void *user_data)
|
|||
|
||||
if (dbus_message_get_args (reply, NULL, DBUS_TYPE_STRING, &info_product, DBUS_TYPE_INVALID))
|
||||
{
|
||||
char *desc = g_strdup_printf ("%s %s", cb_data->vendor, info_product);
|
||||
char *desc;
|
||||
|
||||
network_device_set_desc (cb_data->dev, desc);
|
||||
desc = g_strdup_printf ("%s %s", cb_data->vendor, info_product);
|
||||
network_device_set_desc (cb_data->dev, desc);
|
||||
g_free (desc);
|
||||
}
|
||||
dbus_message_unref (reply);
|
||||
|
||||
|
|
Loading…
Reference in a new issue