mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
fp-device: Use g_clear_error instead of check + free
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user