image-device: Fix incorrect g_free of error

GError needs to be free'ed using g_error_free, fix this.
This commit is contained in:
Benjamin Berg 2020-11-17 13:35:40 +01:00
parent 1b5dd0057f
commit 280f916ace

View file

@ -181,7 +181,7 @@ fp_image_device_maybe_complete_action (FpImageDevice *self, GError *error)
if (priv->action_error && !(priv->action_error->domain == FP_DEVICE_RETRY))
{
g_warning ("Will complete with first error, new error was: %s", error->message);
g_free (error);
g_clear_error (&error);
}
else
{