From db905a2048ac8784ddb4ad2d22a79e5cdfa0b818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 26 Nov 2019 20:44:15 +0100 Subject: [PATCH] fp-device: Use g_clear_error instead of check + free --- libfprint/fp-device.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libfprint/fp-device.c b/libfprint/fp-device.c index c9d1b89..0a1f8de 100644 --- a/libfprint/fp-device.c +++ b/libfprint/fp-device.c @@ -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); }