trivial: Fix an error path when getting firmware results

This commit is contained in:
Richard Hughes 2016-12-12 14:29:21 +00:00
parent cff38bcb3a
commit 31bfba3d1b

View File

@ -984,6 +984,7 @@ fu_main_get_item_by_id_fallback_pending (FuMainPrivate *priv, const gchar *id, G
FWUPD_ERROR, FWUPD_ERROR,
FWUPD_ERROR_NOT_FOUND, FWUPD_ERROR_NOT_FOUND,
"no plugin %s found", tmp); "no plugin %s found", tmp);
return NULL;
} }
item = g_new0 (FuDeviceItem, 1); item = g_new0 (FuDeviceItem, 1);
item->device = g_object_ref (dev); item->device = g_object_ref (dev);