fp-device: Use g_clear_error instead of check + free

This commit is contained in:
Marco Trevisan (Treviño) 2019-11-26 20:44:15 +01:00
parent 712853d1e3
commit db905a2048

View file

@ -2342,9 +2342,8 @@ fpi_device_enroll_progress (FpDevice *device,
data->enroll_progress_data,
error);
}
if (error)
g_error_free (error);
g_clear_error (&error);
g_clear_object (&print);
}