fp-device: Use g_clear_error instead of check + free
This commit is contained in:
parent
712853d1e3
commit
db905a2048
1 changed files with 1 additions and 2 deletions
|
@ -2342,9 +2342,8 @@ fpi_device_enroll_progress (FpDevice *device,
|
||||||
data->enroll_progress_data,
|
data->enroll_progress_data,
|
||||||
error);
|
error);
|
||||||
}
|
}
|
||||||
if (error)
|
|
||||||
g_error_free (error);
|
|
||||||
|
|
||||||
|
g_clear_error (&error);
|
||||||
g_clear_object (&print);
|
g_clear_object (&print);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue