Blame SOURCES/0046-fp-device-Use-g_clear_error-instead-of-check-free.patch

73b847
From 25bfa5a0681d6b7eb88a98b229fc309465257358 Mon Sep 17 00:00:00 2001
73b847
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
73b847
Date: Tue, 26 Nov 2019 20:44:15 +0100
73b847
Subject: [PATCH 046/181] fp-device: Use g_clear_error instead of check + free
73b847
73b847
---
73b847
 libfprint/fp-device.c | 3 +--
73b847
 1 file changed, 1 insertion(+), 2 deletions(-)
73b847
73b847
diff --git a/libfprint/fp-device.c b/libfprint/fp-device.c
73b847
index c9d1b89..0a1f8de 100644
73b847
--- a/libfprint/fp-device.c
73b847
+++ b/libfprint/fp-device.c
73b847
@@ -2342,9 +2342,8 @@ fpi_device_enroll_progress (FpDevice *device,
73b847
                                 data->enroll_progress_data,
73b847
                                 error);
73b847
     }
73b847
-  if (error)
73b847
-    g_error_free (error);
73b847
 
73b847
+  g_clear_error (&error);
73b847
   g_clear_object (&print);
73b847
 }
73b847
 
73b847
-- 
73b847
2.24.1
73b847