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:
Dan Williams 2006-11-27 21:48:33 +00:00
parent 17b61aa02f
commit 13ee37f480
2 changed files with 12 additions and 2 deletions

View file

@ -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>

View file

@ -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);