mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-08 05:17:31 +00:00
trivial: Fix a critical warning when removing thunderbolt devices in safe mode
This commit is contained in:
parent
038d386a82
commit
e3c8832dd0
@ -72,6 +72,7 @@ static void
|
|||||||
fu_plugin_thunderbolt_info_free (FuThunderboltInfo *info)
|
fu_plugin_thunderbolt_info_free (FuThunderboltInfo *info)
|
||||||
{
|
{
|
||||||
g_free (info->id);
|
g_free (info->id);
|
||||||
|
if (info->dev != NULL)
|
||||||
g_object_unref (info->dev);
|
g_object_unref (info->dev);
|
||||||
g_slice_free (FuThunderboltInfo, info);
|
g_slice_free (FuThunderboltInfo, info);
|
||||||
}
|
}
|
||||||
@ -111,7 +112,8 @@ fu_plugin_thunderbolt_rescan (FuPlugin *plugin, GError **error)
|
|||||||
tbt_strerror (rc));
|
tbt_strerror (rc));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
g_debug ("found %i thunderbolt controllers", data->controllers_len);
|
g_debug ("found %" G_GSIZE_FORMAT " thunderbolt controllers",
|
||||||
|
data->controllers_len);
|
||||||
|
|
||||||
/* no longer valid */
|
/* no longer valid */
|
||||||
for (guint i = 0; i < data->infos->len; i++) {
|
for (guint i = 0; i < data->infos->len; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user