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:
parent
1b5dd0057f
commit
280f916ace
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
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_warning ("Will complete with first error, new error was: %s", error->message);
|
||||||
g_free (error);
|
g_clear_error (&error);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue